Spaces:
Runtime error
Runtime error
Internationale Deutsche Schule Sarajevo commited on
Update app.py
Browse files385 unmodified lines3863873883893903913903923933923933943943953963973983997 unmodified lines407408409410411385 unmodified lineslesson_plan = lesson_plan.replace("[Caption for Image 3]", "Image 3 caption")
return lesson_planUse code with caution.--- 3. Gradio Interface ---with gr.Blocks() as demo: gr.Markdown("# IDSS Lesson Planner")gr.Markdown("# IDSS Lesson Planner")
with gr.Row(): with gr.Column(): grade_level = gr.Textbox(label="Grade Level (e.g., 4)", value="4")with gr.Row(): with gr.Column(): grade_level = gr.Textbox(label="Grade Level (e.g., 4)", value="4") subject = gr.Textbox(label="Subject (e.g., Mathematik)", value="Mathematik") topic = gr.Textbox(label="Topic (e.g., Gewicht)", value="Gewicht") class_duration = gr.Textbox(label="Class Duration (e.g., 45)", value="45")7 unmodified lines inputs=[grade_level, subject, topic, class_duration, language_dropdown], # Include the language outputs=output_text,)Use code with caution.demo.launch()app.py+7-4