Spaces:
Runtime error
Runtime error
layout update
Browse files
Home.py
CHANGED
@@ -46,10 +46,11 @@ with gr.Blocks() as App:
|
|
46 |
examples=[
|
47 |
["Wie steht die CDU zur Cannabislegalisierung?", "All", "DE"],
|
48 |
["Wie steht die FDP zur Rente?", "All", "DE"],
|
49 |
-
["Was
|
50 |
-
["
|
|
|
51 |
],
|
52 |
-
cache_examples=
|
53 |
additional_inputs = [db_inputs, prompt_language],
|
54 |
)
|
55 |
|
@@ -116,29 +117,30 @@ with gr.Blocks() as App:
|
|
116 |
)
|
117 |
|
118 |
with gr.Tab("About"):
|
119 |
-
gr.Markdown("""
|
|
|
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>
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
137 |
</ul>
|
138 |
-
""")
|
139 |
-
|
140 |
|
|
|
141 |
|
|
|
|
|
|
|
142 |
if __name__ == "__main__":
|
143 |
App.launch(share=False) # true not supported on hf spaces
|
144 |
|
|
|
46 |
examples=[
|
47 |
["Wie steht die CDU zur Cannabislegalisierung?", "All", "DE"],
|
48 |
["Wie steht die FDP zur Rente?", "All", "DE"],
|
49 |
+
["Was sagten die Parteien in der ersten Legislaturperiode über die nazi Vergangenheit?", "1. Legislaturperiode", "DE"],
|
50 |
+
["Wie wird die Ehe für alle diskutiert?", "18. Legislaturperiode", "DE"],
|
51 |
+
["How is the GDR perceived?", "11. Legislaturperiode", "EN"]
|
52 |
],
|
53 |
+
cache_examples=True, #true increases loading time
|
54 |
additional_inputs = [db_inputs, prompt_language],
|
55 |
)
|
56 |
|
|
|
117 |
)
|
118 |
|
119 |
with gr.Tab("About"):
|
120 |
+
gr.Markdown("""
|
121 |
+
<h2>Welcome to <strong>Politics2you</strong> - your playground for investigating the heart of politics in Germany</h2>
|
122 |
|
123 |
<p>Would you like to gain insights into political debates or reveal party positions on specific topics from any legislature?</p>
|
|
|
124 |
<p>You can use the ChatBot to ask all your questions or search for related speech content in the Keyword Search section.</p>
|
|
|
|
|
125 |
<p>Looking forward to your feedback!</p>
|
126 |
|
127 |
<h3>Further improvements & Ideas:</h3>
|
128 |
<ul>
|
129 |
+
<li>Experiment with different LLMs and Templates</li>
|
130 |
+
<li>Include chat history in RAG</li>
|
131 |
+
<li>Add a date or legislature filter to KeywordSearch</li>
|
132 |
+
<li>Exclude short document splits when creating the vectorstore</li>
|
133 |
+
<li>Improve inference time</li>
|
134 |
+
<li>Add analytic tools for party manifestos</li>
|
135 |
+
<li>Expand the scope to different countries</li>
|
136 |
+
<li>Update vector databases with new speech entries every n months (currently static)</li>
|
137 |
</ul>
|
|
|
|
|
138 |
|
139 |
+
<p>Big thank you to the OpenDiscourse team for creating the underlying speeches corpus. Check out their website <a href="https://opendiscourse.de/">here</a>.</p>
|
140 |
|
141 |
+
"""
|
142 |
+
)
|
143 |
+
|
144 |
if __name__ == "__main__":
|
145 |
App.launch(share=False) # true not supported on hf spaces
|
146 |
|