Tolga
commited on
Commit
·
e5a04a6
1
Parent(s):
159e685
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,10 +41,10 @@ a:hover {
|
|
| 41 |
}
|
| 42 |
"""
|
| 43 |
|
| 44 |
-
browser_tab_title = "Sentiment Analysis"
|
| 45 |
intro_markdown = """## Sentiment Analysis
|
| 46 |
|
| 47 |
-
Using the [
|
| 48 |
|
| 49 |
with gr.Blocks(title=browser_tab_title, css=custom_css) as demo:
|
| 50 |
with gr.Row():
|
|
@@ -54,7 +54,7 @@ with gr.Blocks(title=browser_tab_title, css=custom_css) as demo:
|
|
| 54 |
label_output = gr.Label(label="Sentiment outcome")
|
| 55 |
button_run = gr.Button("Compute sentiment")
|
| 56 |
button_run.click(sentiment_analysis, inputs=text_input, outputs=label_output)
|
| 57 |
-
gr.Examples(["
|
| 58 |
|
| 59 |
if __name__ == "__main__":
|
| 60 |
demo.launch()
|
|
|
|
| 41 |
}
|
| 42 |
"""
|
| 43 |
|
| 44 |
+
browser_tab_title = "Turkish Airlines Customer Reviews Sentiment Analysis"
|
| 45 |
intro_markdown = """## Sentiment Analysis
|
| 46 |
|
| 47 |
+
Using the [TurkishAirlines-SentimentAnalysisModel](https://huggingface.co/tkurtulus/TurkishAirlines-SentimentAnalysisModel), trained on Twitter customer reviews with 3 sentiment levels (positive, negative, neutral)."""
|
| 48 |
|
| 49 |
with gr.Blocks(title=browser_tab_title, css=custom_css) as demo:
|
| 50 |
with gr.Row():
|
|
|
|
| 54 |
label_output = gr.Label(label="Sentiment outcome")
|
| 55 |
button_run = gr.Button("Compute sentiment")
|
| 56 |
button_run.click(sentiment_analysis, inputs=text_input, outputs=label_output)
|
| 57 |
+
gr.Examples(["Such a great experience!", "My luggage was lost.", "Food service was outstanding"], text_input)
|
| 58 |
|
| 59 |
if __name__ == "__main__":
|
| 60 |
demo.launch()
|