ilar06 commited on
Commit
d6f1eed
·
verified ·
1 Parent(s): f19b77b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,11 +7,12 @@ def get_sentiment(input_):
7
  response = get_response(tokenizer, model, input_)
8
  return sentiment(input_)
9
 
10
- gr.Interface(
11
  fn=get_sentiment,
12
  inputs=gr.inputs.Textbox(lines=5, label="Enter text"),
13
  outputs=gr.outputs.Textbox(label="Sentiment Analysis Result")
14
- ).launch()
 
15
 
16
 
17
 
 
7
  response = get_response(tokenizer, model, input_)
8
  return sentiment(input_)
9
 
10
+ iface = gr.Interface(
11
  fn=get_sentiment,
12
  inputs=gr.inputs.Textbox(lines=5, label="Enter text"),
13
  outputs=gr.outputs.Textbox(label="Sentiment Analysis Result")
14
+ )
15
+ iface.launch(share=True)
16
 
17
 
18