Spaces:
Runtime error
Runtime error
Commit
·
3540a4c
1
Parent(s):
b3f1c01
Added textbox
Browse files
app.py
CHANGED
@@ -10,4 +10,7 @@ def analyse_sentiment(text):
|
|
10 |
response = roberta_pipe(text)
|
11 |
return response
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
10 |
response = roberta_pipe(text)
|
11 |
return response
|
12 |
|
13 |
+
text = gr.inputs.Textbox(lines=5, placeholder="Enter Text to Get Sentiment",default="", label="Enter Text")
|
14 |
+
text_output = gr.outputs.Textbox(type="auto", label=f"Sentiment")
|
15 |
+
|
16 |
+
grad.Interface(fn=analyse_sentiment, inputs=text, outputs=text_output).launch()
|