Spaces:
Runtime error
Runtime error
Internationale Deutsche Schule Sarajevo commited on
Update app.py
Browse files385 unmodified lines3863873883893903913923933943953963977 unmodified lines405406407408385 unmodified lineslesson_plan = lesson_plan.replace("[Caption for Image 3]", "Image 3 caption")return lesson_planwith gr.Blocks() as demo:gr.Markdown("# IDSS Lesson Planner")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 linesinputs=[grade_level, subject, topic, class_duration, language_dropdown], # Include the languageoutputs=output_text,)demo.launch()385 unmodified lines3863873883893903913923933943953963973983997 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")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 linesinputs=[grade_level, subject, topic, class_duration, language_dropdown], # Include the languageoutputs=output_text,)Use code with caution.demo.launch()
app.py+7-4