srivarshan commited on
Commit
3ac50a2
·
1 Parent(s): 4435fa8

Minor changes

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. requirements.txt +62 -0
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
 
2
 
3
- def analyze(name):
4
- return "Hello, World!"
 
5
 
6
  app = gr.Interface(fn=analyze, inputs="text", outputs="text")
7
 
 
1
  import gradio as gr
2
+ from nltk.corpus import stopwords
3
 
4
+ def analyze(text):
5
+ text = stopwords.words("english")[0]
6
+ return text
7
 
8
  app = gr.Interface(fn=analyze, inputs="text", outputs="text")
9
 
requirements.txt ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiohttp==3.8.3
2
+ aiosignal==1.3.1
3
+ altair==4.2.0
4
+ anyio==3.6.2
5
+ async-timeout==4.0.2
6
+ attrs==22.1.0
7
+ certifi==2022.12.7
8
+ charset-normalizer==2.1.1
9
+ click==8.1.3
10
+ contourpy==1.0.6
11
+ cycler==0.11.0
12
+ entrypoints==0.4
13
+ fastapi==0.88.0
14
+ ffmpy==0.3.0
15
+ fonttools==4.38.0
16
+ frozenlist==1.3.3
17
+ fsspec==2022.11.0
18
+ gradio==3.14.0
19
+ h11==0.14.0
20
+ httpcore==0.16.2
21
+ httpx==0.23.1
22
+ idna==3.4
23
+ Jinja2==3.1.2
24
+ joblib==1.2.0
25
+ jsonschema==4.17.3
26
+ kiwisolver==1.4.4
27
+ linkify-it-py==1.0.3
28
+ markdown-it-py==2.1.0
29
+ MarkupSafe==2.1.1
30
+ matplotlib==3.6.2
31
+ mdit-py-plugins==0.3.3
32
+ mdurl==0.1.2
33
+ multidict==6.0.3
34
+ nltk==3.8
35
+ numpy==1.23.5
36
+ orjson==3.8.3
37
+ packaging==22.0
38
+ pandas==1.5.2
39
+ Pillow==9.3.0
40
+ pycryptodome==3.16.0
41
+ pydantic==1.10.2
42
+ pydub==0.25.1
43
+ pyparsing==3.0.9
44
+ pyrsistent==0.19.2
45
+ python-dateutil==2.8.2
46
+ python-multipart==0.0.5
47
+ pytz==2022.6
48
+ PyYAML==6.0
49
+ regex==2022.10.31
50
+ requests==2.28.1
51
+ rfc3986==1.5.0
52
+ six==1.16.0
53
+ sniffio==1.3.0
54
+ starlette==0.22.0
55
+ toolz==0.12.0
56
+ tqdm==4.64.1
57
+ typing_extensions==4.4.0
58
+ uc-micro-py==1.0.1
59
+ urllib3==1.26.13
60
+ uvicorn==0.20.0
61
+ websockets==10.4
62
+ yarl==1.8.2