Spaces:
Sleeping
Sleeping
samiNCL
commited on
Commit
·
4034762
1
Parent(s):
05a80ad
Update code
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -23,5 +23,9 @@ def analyze_sentiment(text):
|
|
23 |
sentiment = result['label']
|
24 |
return sentiment
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
iface.launch()
|
|
|
23 |
sentiment = result['label']
|
24 |
return sentiment
|
25 |
|
26 |
+
def analyze_text(text):
|
27 |
+
sentiment = analyze_sentiment(text)
|
28 |
+
return sentiment
|
29 |
+
|
30 |
+
iface = gr.Interface(fn=analyze_text, inputs=gr.inputs.Textbox(lines=13, label="Enter Text"), outputs="text")
|
31 |
iface.launch()
|