Spaces:
Build error
Build error
Update app.py
Browse files14 unmodified lines151617181920216 unmodified lines282930313233343536373814 unmodified lines# Define the chatbot's response functiondef faq_chatbot(user_input): # Removed "The Academic Advisor" argument# Check if the user's input matches any FAQ keywordsfor key, response in faq_responses.items():if key in user_input.lower():6 unmodified lines# Create the Gradio interfaceinterface = gr.Interface(fn=faq_chatbot, # The function to handle user inputinputs=gr.Textbox(lines=2, placeholder="Ask me about studying tips or resources..."), # Input text boxoutputs="text", # Output as texttitle="**Academic Advisor**", # Updated titledescription="Ask me for study tips, time management advice, or about resources to help with your studies!")# Launch the chatbot14 unmodified lines151617181920216 unmodified lines28293031323334353637383914 unmodified lines# Define the chatbot's response functiondef faq_chatbot(user_input):# Check if the user's input matches any FAQ keywordsfor key, response in faq_responses.items():if key in user_input.lower():6 unmodified lines# Create the Gradio interfaceinterface = gr.Interface(fn=faq_chatbot,inputs=gr.Textbox(lines=2, placeholder="Ask me about studying tips or resources..."),outputs="text",title="Academic Advisor",description="Ask me for study tips, time management advice, or about resources to help with your studies!",inputs_label="**Academic Advisor**", # Change the label to "Academic Advisor")# Launch the chatbot
app.py+7-6