Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def text_classification(text):
|
|
15 |
formatted_output = f"This sentiment is {sentiment_label} with the probability {sentiment_score*100:.2f}%"
|
16 |
return formatted_output
|
17 |
|
18 |
-
examples=["It's been a rollercoaster lately. One moment I'm on top of the world, full of energy, and the next, I'm down in the dumps, feeling hopeless", "I'
|
19 |
|
20 |
io = gr.Interface(fn=text_classification,
|
21 |
inputs= gr.Textbox(lines=2, label="Text", placeholder="Enter title here..."),
|
|
|
15 |
formatted_output = f"This sentiment is {sentiment_label} with the probability {sentiment_score*100:.2f}%"
|
16 |
return formatted_output
|
17 |
|
18 |
+
examples=["It's been a rollercoaster lately. One moment I'm on top of the world, full of energy, and the next, I'm down in the dumps, feeling hopeless", "I can't keep going like this anymore. Everything feels hopeless, and I don't see a way out. I feel like the world would be better off without me."]
|
19 |
|
20 |
io = gr.Interface(fn=text_classification,
|
21 |
inputs= gr.Textbox(lines=2, label="Text", placeholder="Enter title here..."),
|