Spaces:
Sleeping
Sleeping
Commit
·
afdf68a
1
Parent(s):
ffa05ed
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,9 @@ def predict_sentiment(input: Input, words):
|
|
16 |
decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
17 |
return f"{decoded_output}"
|
18 |
|
|
|
19 |
|
20 |
-
|
|
|
21 |
|
22 |
iface.launch()
|
|
|
16 |
decoded_output = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
17 |
return f"{decoded_output}"
|
18 |
|
19 |
+
conversation = gr.Textbox(lines=2, placeholder="Conversations Here...")
|
20 |
|
21 |
+
|
22 |
+
iface = gr.Interface(fn=predict_sentiment, inputs=[Input(text=conversation), gr.Slider(10, 100)], outputs="text")
|
23 |
|
24 |
iface.launch()
|