Spaces:
Runtime error
Runtime error
fix bug
Browse files
app.py
CHANGED
|
@@ -49,14 +49,14 @@ def get_llm_response_and_generate_unit(subject, year, key_concept, related_conce
|
|
| 49 |
return llm_response
|
| 50 |
|
| 51 |
iface = gr.Interface(fn=[generate_unit, get_llm_response_and_generate_unit],
|
| 52 |
-
inputs=[[gr.inputs.Dropdown(subjects, label="Subject"
|
| 53 |
-
gr.inputs.Dropdown(myp_years, label="MYP Year"
|
| 54 |
-
[gr.inputs.Dropdown(subjects, label="Subject"
|
| 55 |
-
gr.inputs.Dropdown(myp_years, label="MYP Year"
|
| 56 |
gr.inputs.Textbox(label="Key Concept"),
|
| 57 |
gr.inputs.Textbox(label="Related Concept"),
|
| 58 |
gr.inputs.Textbox(label="Global Context")]],
|
| 59 |
-
|
| 60 |
gr.outputs.Textbox(label="Related Concept"),
|
| 61 |
gr.outputs.Textbox(label="Global Context")],
|
| 62 |
gr.outputs.Textbox(label="LLM Response")],
|
|
|
|
| 49 |
return llm_response
|
| 50 |
|
| 51 |
iface = gr.Interface(fn=[generate_unit, get_llm_response_and_generate_unit],
|
| 52 |
+
inputs=[[gr.inputs.Dropdown(choices=subjects, label="Subject", default=subjects[0]),
|
| 53 |
+
gr.inputs.Dropdown(choices=myp_years, label="MYP Year", default=myp_years[0])],
|
| 54 |
+
[gr.inputs.Dropdown(choices=subjects, label="Subject", default=subjects[0]),
|
| 55 |
+
gr.inputs.Dropdown(choices=myp_years, label="MYP Year", default=myp_years[0]),
|
| 56 |
gr.inputs.Textbox(label="Key Concept"),
|
| 57 |
gr.inputs.Textbox(label="Related Concept"),
|
| 58 |
gr.inputs.Textbox(label="Global Context")]],
|
| 59 |
+
outputs=[[gr.outputs.Textbox(label="Key Concept"),
|
| 60 |
gr.outputs.Textbox(label="Related Concept"),
|
| 61 |
gr.outputs.Textbox(label="Global Context")],
|
| 62 |
gr.outputs.Textbox(label="LLM Response")],
|