Spaces:
Paused
Paused
Tao Wu commited on
Commit ·
ffd107a
1
Parent(s): bd99eb5
change layout
Browse files- app/app.py +6 -8
app/app.py
CHANGED
|
@@ -195,15 +195,13 @@ if __name__ == "__main__":
|
|
| 195 |
# Gradio interface
|
| 196 |
with gr.Blocks(title="MyEduLife Kursempfehlungssystem") as demo:
|
| 197 |
with gr.Row():
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
skillgap_dropdown = gr.Dropdown([],label="Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie lernen möchten.')
|
| 203 |
# Use gr.HTML to display the HTML content
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
documents_output = gr.HTML()
|
| 207 |
|
| 208 |
occupation_dropdown.change(update_skills, inputs=occupation_dropdown, outputs=currentskill_dropdown)
|
| 209 |
|
|
|
|
| 195 |
# Gradio interface
|
| 196 |
with gr.Blocks(title="MyEduLife Kursempfehlungssystem") as demo:
|
| 197 |
with gr.Row():
|
| 198 |
+
occupation_dropdown = gr.Dropdown(list(occupations.keys()), label="Zielberuf",info='Bitte wählen Sie Ihren Zielberuf aus.')
|
| 199 |
+
currentskill_dropdown = gr.Dropdown([],label="aktuelle Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie derzeit besitzen')
|
| 200 |
+
sb_btn = gr.Button("Absenden")
|
| 201 |
+
skillgap_dropdown = gr.Dropdown([],label="Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie lernen möchten.')
|
|
|
|
| 202 |
# Use gr.HTML to display the HTML content
|
| 203 |
+
button = gr.Button("Kursempfehlungen")
|
| 204 |
+
documents_output = gr.HTML()
|
|
|
|
| 205 |
|
| 206 |
occupation_dropdown.change(update_skills, inputs=occupation_dropdown, outputs=currentskill_dropdown)
|
| 207 |
|