Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,6 +102,10 @@ BIO_TOPICS = [
|
|
| 102 |
"Ecology"
|
| 103 |
]
|
| 104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
chosen_topic = None
|
| 106 |
|
| 107 |
|
|
@@ -115,6 +119,12 @@ with gr.Blocks() as demo:
|
|
| 115 |
|
| 116 |
topic_output = gr.Markdown()
|
| 117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
chatbot = gr.ChatInterface(respond, type="messages", title="ACE it!")
|
| 119 |
|
| 120 |
topic_button.click(set_topic, inputs=topic_dropdown, outputs=topic_output)
|
|
|
|
| 102 |
"Ecology"
|
| 103 |
]
|
| 104 |
|
| 105 |
+
exam_mode = [ "exam mode", "learning mode"
|
| 106 |
+
|
| 107 |
+
]
|
| 108 |
+
|
| 109 |
chosen_topic = None
|
| 110 |
|
| 111 |
|
|
|
|
| 119 |
|
| 120 |
topic_output = gr.Markdown()
|
| 121 |
|
| 122 |
+
with gr.Row():
|
| 123 |
+
exam_dropdown = gr.Dropdown(choices=exam_mode, label = "Which mode would you like it"
|
| 124 |
+
exam_button = gr.Button("Confirm mode")
|
| 125 |
+
|
| 126 |
+
exam_output = gr.Markdown()
|
| 127 |
+
|
| 128 |
chatbot = gr.ChatInterface(respond, type="messages", title="ACE it!")
|
| 129 |
|
| 130 |
topic_button.click(set_topic, inputs=topic_dropdown, outputs=topic_output)
|