Spaces:
Runtime error
Runtime error
fixed examples
Browse files- Home.py +8 -3
- requirements.txt +1 -0
Home.py
CHANGED
|
@@ -43,7 +43,12 @@ with gr.Blocks() as App:
|
|
| 43 |
gr.ChatInterface(chatbot,
|
| 44 |
title="PoliticsToYou",
|
| 45 |
description= "Ask anything about your favorite political topic from any legislature period",
|
| 46 |
-
examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
cache_examples=False, #true increases loading time
|
| 48 |
additional_inputs = [db_inputs, prompt_language],
|
| 49 |
)
|
|
@@ -115,10 +120,10 @@ with gr.Blocks() as App:
|
|
| 115 |
|
| 116 |
<p>Would you like to gain insights into political debates or reveal party positions on specific topics from any legislature?</p>
|
| 117 |
<ul>
|
| 118 |
-
<
|
| 119 |
</ul>
|
| 120 |
<p>Enjoy your journey! </p>
|
| 121 |
-
<p>Looking forward to your feedback
|
| 122 |
|
| 123 |
<h3>Further improvements & Ideas:</h3>
|
| 124 |
<ul>
|
|
|
|
| 43 |
gr.ChatInterface(chatbot,
|
| 44 |
title="PoliticsToYou",
|
| 45 |
description= "Ask anything about your favorite political topic from any legislature period",
|
| 46 |
+
examples=[
|
| 47 |
+
["Wie steht die CDU zur Cannabislegalisierung?", "All", "DE"],
|
| 48 |
+
["Wie steht die FDP zur Rente?", "All", "DE"],
|
| 49 |
+
["Was wird für die Rechte von LGBTQ getan?", "All", "DE"],
|
| 50 |
+
["Sollen wir Waffen an die Ukraine liefern", "All", "DE"],
|
| 51 |
+
],
|
| 52 |
cache_examples=False, #true increases loading time
|
| 53 |
additional_inputs = [db_inputs, prompt_language],
|
| 54 |
)
|
|
|
|
| 120 |
|
| 121 |
<p>Would you like to gain insights into political debates or reveal party positions on specific topics from any legislature?</p>
|
| 122 |
<ul>
|
| 123 |
+
<p>You can use the ChatBot to ask all your questions or search for related speech content in the Keyword Search section.</p>
|
| 124 |
</ul>
|
| 125 |
<p>Enjoy your journey! </p>
|
| 126 |
+
<p>Looking forward to your feedback!</p>
|
| 127 |
|
| 128 |
<h3>Further improvements & Ideas:</h3>
|
| 129 |
<ul>
|
requirements.txt
CHANGED
|
@@ -10,6 +10,7 @@ faiss-cpu==1.8.0
|
|
| 10 |
filelock==3.14.0
|
| 11 |
frozenlist==1.4.1
|
| 12 |
fsspec==2024.5.0
|
|
|
|
| 13 |
greenlet==3.0.3
|
| 14 |
huggingface-hub==0.23.2
|
| 15 |
idna==3.7
|
|
|
|
| 10 |
filelock==3.14.0
|
| 11 |
frozenlist==1.4.1
|
| 12 |
fsspec==2024.5.0
|
| 13 |
+
gradio==4.29.0
|
| 14 |
greenlet==3.0.3
|
| 15 |
huggingface-hub==0.23.2
|
| 16 |
idna==3.7
|