detoxify's People
detoxify's Issues
Short bash script for uvicorn and data download.
Current ML model is saved in drive.
While running the application on cloud major problems which one can faces are:
- downloading the model hosted on cloud
- starting the app with uvicorn. Easy though, but a bash script will be helpful.
Consider this as child issue of #3
Write a Proper Documentation for the Frontend Team to Refer
Require a chrome client Side Extension
Create a Client-Side chrome extension - Much like how Grammarly is, where the extension can be overlaid on any textbox(like Grammarly) and show stats of what has been written in that particular textbox. This extension should work on most of the sites and get overlaid on those text boxes to show the stats for the text that has been written
The stats that you would get from backend would be something like this, how these stats are to be shown is up to your creativity:
{
"result": "(MultiCategory tensor([1., 1., 1., 0., 1., 0.]), tensor([1., 1., 1., 0., 1., 0.]), tensor([0.9999, 0.9452, 1.0000, 0.0019, 0.9661, 0.0018]))",
"list": [
0.9999,
0.9452,
1,
0.0019,
0.9661,
0.0018
],
"dict": {
"toxic": 0.9999,
"severe_toxic": 0.9452,
"obscene": 1,
"insult": 0.9661
}
We are interested in the final dictionary being overlaid on the textbox
Deployment
Apparently, due to fastai, deployment of the API on Heroku has been a headache, would appreciate if anyone can solve this deployment issue so the frontend team's work becomes easier
Adding healthcheck endpoint and extend allowed hosts
The current project doesn't have any healthcheck API endpoint to know if the API is up and running or not.
- This issue proposes a healthcheck endpoint.
- This issue proposes to add few more allowed origin hosts to make it work on cloud instances. [already done in origins]
Issue can be conuted as a child issue of #3.
Add Requirements and .gitignore
Issue to propose adding requirements.txt and .gitignore for easy installation.
NumExpr defaulting to 8 threads
This particualr line in the code
res = learn.predict(k)
leads to this : NumExpr defaulting to 8 threads
and the result isn't properly displayed,so had to use regex and work around to get the toxicity score
Would appreciate if anyone can fix this or has a better work around
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.