Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,4 +12,19 @@ def predict(prompt):
|
|
12 |
return 'neutral'
|
13 |
else:
|
14 |
return 'negative'
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
return 'neutral'
|
13 |
else:
|
14 |
return 'negative'
|
15 |
+
|
16 |
+
title = "Turkish Sentiment Analysis"
|
17 |
+
description = """
|
18 |
+
The bot has been trained to analyze the sentiment of Turkish text. When provided with a Turkish prompt, it can determine whether the text expresses a neutral, negative, or positive sentiment.
|
19 |
+
|
20 |
+
"""
|
21 |
+
textbox = gr.Textbox(label="Enter a text here:", lines=1)
|
22 |
+
|
23 |
+
gr.Interface(
|
24 |
+
fn=predict,
|
25 |
+
inputs=textbox,
|
26 |
+
outputs="text",
|
27 |
+
title=title,
|
28 |
+
description=description,
|
29 |
+
examples=[["ortam oldukça güzel"], ["senden bir cacık olmaz"]],
|
30 |
+
).launch(share=True)
|