hussain-shk commited on
Commit
3540a4c
·
1 Parent(s): b3f1c01

Added textbox

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -10,4 +10,7 @@ def analyse_sentiment(text):
10
  response = roberta_pipe(text)
11
  return response
12
 
13
- grad.Interface(fn=analyse_sentiment, inputs="text", outputs="text").launch()
 
 
 
 
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()