Update app.py
Browse files
app.py
CHANGED
@@ -123,11 +123,17 @@ dropdown_options = ["Keine These ausgewählt",
|
|
123 |
|
124 |
|
125 |
with gr.Blocks() as demo:
|
126 |
-
chatbot = gr.Chatbot(value=[[None,"
|
127 |
dropdown = gr.Dropdown(choices=dropdown_options, label="Choose an option")
|
128 |
-
|
129 |
-
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
print("Interface up and running!")
|
132 |
|
133 |
|
|
|
123 |
|
124 |
|
125 |
with gr.Blocks() as demo:
|
126 |
+
chatbot = gr.Chatbot(value=[[None,"Hallo mein Name ist Avah (Artificial Voting Advice Helper), deine interaktive Hilfe zum Wahl-O-Maten für die Bundestagswahl 2021. Wenn du Fragen zu Thesen der Wahlhilfe hast, wähle gerne die besagt These aus. Ansonsten kannst du mir auch unabhängig von bestimmten Thesen Fragen stellen."]], render_markdown=True)
|
127 |
dropdown = gr.Dropdown(choices=dropdown_options, label="Choose an option")
|
128 |
+
textbox = gr.Textbox(label="Your Question")
|
129 |
+
|
130 |
+
gr.Interface(
|
131 |
+
fn=response,
|
132 |
+
inputs=[textbox, chatbot, dropdown],
|
133 |
+
outputs=chatbot,
|
134 |
+
title="Avah (Artificial Voting Advice Helper)"
|
135 |
+
).launch(share=True)
|
136 |
+
|
137 |
print("Interface up and running!")
|
138 |
|
139 |
|