mdeniz1 commited on
Commit
66c4022
1 Parent(s): 2847fea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -12,4 +12,19 @@ def predict(prompt):
12
  return 'neutral'
13
  else:
14
  return 'negative'
15
- gr.Interface(fn=predict, inputs="text", outputs="text").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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)