Spaces:
Runtime error
Runtime error
Update app.py
Browse files9 unmodified lines101112131314151617171819202121222324252526272829293031329 unmodified lines
def career_suggestions(interest): return f"Career suggestions based on interest in {interest}..."
Tab 1: Notes Generator# Tab 1: Notes Generator
notes_interface = gr.Interface( fn=generate_notes, inputs=gr.Textbox(label="Enter Subject (e.g., Physics)"), outputs=gr.Textbox(label="Notes Output"), title="Notes Generator" )
Tab 2: Quiz Generator# Tab 2: Quiz Generator
quiz_interface = gr.Interface( fn=generate_quiz, inputs=gr.Textbox(label="Enter Subject (e.g., Chemistry)"), outputs=gr.Textbox(label="Quiz Output"), title="Quiz Generator" )
Tab 3: Formula Helper# Tab 3: Formula Helper
formula_interface = gr.Interface( fn=important_formulas, inputs=gr.Textbox(label="Enter Subject (e.g., Maths)"), outputs=gr.Textbox(label="Formulas Output"), title="Formula Helper" )
Tab 4: Career Suggestions# Tab 4: Career Suggestions
career_interface = gr.Interface( fn=career_suggestions, inputs=gr.Textbox(label="Enter Your Interest (e.g., Biology)"), outputs=gr.Textbox(label="Suggested Careers"), title="Career Suggestions" )
Combine all tabs into one app# Combine all tabs into one app
demo = gr.TabbedInterface( interface_list=[notes_interface, quiz_interface, formula_interface, career_interface], tab_names=["Notes", "Quiz", "Formulas", "Careers"] )
app.py+5-5