indiapuig commited on
Commit
0e53879
·
verified ·
1 Parent(s): 80d48aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -109,13 +109,15 @@ chosen_topic = None
109
  with gr.Blocks() as demo:
110
  gr.Markdown("# ACE it! 📚 — GCSE Biology Tutor")
111
 
 
112
  with gr.Row():
113
- topic_dropdown = gr.Dropdown(choices=BIO_TOPICS, label="Choose a Biology Topic")
114
- topic_button = gr.Button("Confirm Topic")
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)
121
 
 
109
  with gr.Blocks() as demo:
110
  gr.Markdown("# ACE it! 📚 — GCSE Biology Tutor")
111
 
112
+ #Choose topic
113
  with gr.Row():
114
+ with gr.Column(scale=1):
115
+ topic_dropdown = gr.Dropdown(choices=BIO_TOPICS, label="Choose a Biology Topic")
116
+ topic_button = gr.Button("Confirm Topic")
117
+ topic_output = gr.Markdown()
118
+
119
+ with gr.Column(scale=2):
120
+ chatbot = gr.ChatInterface(respond, type="messages", title="Ace it!")
121
 
122
  topic_button.click(set_topic, inputs=topic_dropdown, outputs=topic_output)
123