Update app.py
Browse files
app.py
CHANGED
@@ -868,35 +868,36 @@ def get_recent_analyses():
|
|
868 |
|
869 |
return summary_text
|
870 |
|
871 |
-
# Sample data
|
872 |
SAMPLE_TEXTS = [
|
873 |
# Auto Detect
|
874 |
-
["The film had its moments, but overall it felt a bit too long and lacked emotional depth."],
|
875 |
|
876 |
# English
|
877 |
-
["I was completely blown away by the movie — the performances were raw and powerful, and the story stayed with me long after the credits rolled."],
|
878 |
|
879 |
# Chinese
|
880 |
-
["
|
881 |
|
882 |
# Spanish
|
883 |
-
["Una obra maestra del cine contemporáneo, con actuaciones sobresalientes, un guion bien escrito y una dirección impecable."],
|
884 |
|
885 |
# French
|
886 |
-
["Je m'attendais à beaucoup mieux. Le scénario était confus, les dialogues ennuyeux, et je me suis presque endormi au milieu du film."],
|
887 |
|
888 |
# German
|
889 |
-
["Der Film war ein emotionales Erlebnis mit großartigen Bildern, einem mitreißenden Soundtrack und einer Geschichte, die zum Nachdenken anregt."],
|
890 |
|
891 |
# Swedish
|
892 |
-
["Filmen var en besvikelse – tråkig handling, överdrivet skådespeleri och ett slut som inte gav något avslut alls."]
|
893 |
]
|
894 |
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
|
|
|
|
900 |
|
901 |
# Gradio Interface
|
902 |
with gr.Blocks(theme=gr.themes.Soft(), title="Advanced Multilingual Sentiment Analyzer") as demo:
|
|
|
868 |
|
869 |
return summary_text
|
870 |
|
|
|
871 |
SAMPLE_TEXTS = [
|
872 |
# Auto Detect
|
873 |
+
["The film had its moments, but overall it felt a bit too long and lacked emotional depth. Some scenes were visually impressive, yet they failed to connect emotionally. By the end, I found myself disengaged and unsatisfied."],
|
874 |
|
875 |
# English
|
876 |
+
["I was completely blown away by the movie — the performances were raw and powerful, and the story stayed with me long after the credits rolled. Every scene felt purposeful, and the emotional arc was handled with incredible nuance. It's the kind of film that makes you reflect deeply on your own life."],
|
877 |
|
878 |
# Chinese
|
879 |
+
["这部电影节奏拖沓,剧情老套,完全没有让我产生任何共鸣,是一次失望的观影体验。演员的表演也显得做作,缺乏真实感。看到最后甚至有点不耐烦,整体表现乏善可陈。"],
|
880 |
|
881 |
# Spanish
|
882 |
+
["Una obra maestra del cine contemporáneo, con actuaciones sobresalientes, un guion bien escrito y una dirección impecable. Cada plano parecía cuidadosamente pensado, y la historia avanzaba con una intensidad emocional que mantenía al espectador cautivado. Definitivamente una película que vale la pena volver a ver."],
|
883 |
|
884 |
# French
|
885 |
+
["Je m'attendais à beaucoup mieux. Le scénario était confus, les dialogues ennuyeux, et je me suis presque endormi au milieu du film. Même la mise en scène, habituellement un point fort, manquait cruellement d'inspiration cette fois-ci."],
|
886 |
|
887 |
# German
|
888 |
+
["Der Film war ein emotionales Erlebnis mit großartigen Bildern, einem mitreißenden Soundtrack und einer Geschichte, die zum Nachdenken anregt. Besonders beeindruckend war die schauspielerische Leistung der Hauptdarsteller, die eine tiefe Menschlichkeit vermittelten. Es ist ein Film, der lange nachwirkt."],
|
889 |
|
890 |
# Swedish
|
891 |
+
["Filmen var en besvikelse – tråkig handling, överdrivet skådespeleri och ett slut som inte gav något avslut alls. Den kändes forcerad och saknade en tydlig röd tråd. Jag gick från biografen med en känsla av tomhet och frustration."]
|
892 |
]
|
893 |
|
894 |
+
|
895 |
+
BATCH_SAMPLE = """I love this product! It works perfectly and exceeded my expectations. I've been using it every day and it hasn’t let me down once.
|
896 |
+
The service was terrible and slow. I had to wait over an hour, and no one seemed to care about helping me. Really frustrating experience overall.
|
897 |
+
Not sure if I like it or not. Some features are nice, but others are confusing or don’t work as expected. I’m still deciding whether it’s worth keeping.
|
898 |
+
Amazing quality and fast delivery! The packaging was secure, and the product looked even better than in the pictures. I’ll definitely order from here again.
|
899 |
+
Could be better, but it's okay. It does the job, but there are some issues with the build quality. Not bad, just not great either."""
|
900 |
+
|
901 |
|
902 |
# Gradio Interface
|
903 |
with gr.Blocks(theme=gr.themes.Soft(), title="Advanced Multilingual Sentiment Analyzer") as demo:
|