Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
)
|
|
|
|
| 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 |
|