Spaces:
Build error
Build error
Update app.py
Browse files26 unmodified lines272829303132333435363738394041424326 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!")# Add text above the input box (optional)label = gr.Text("**Academic Advisor**")interface = gr.Interface(label, interface, layout="vertical") # Stack label on top of interface# Launch the chatbotinterface.launch(share=True)26 unmodified lines27282930313233343536373839404126 unmodified lines# Create the Gradio interfacelabel = gr.Text("**Academic Advisor**")# Combine the label with the chatbot interface (specifying the output type)interface = gr.Interface(fn=faq_chatbot, inputs=gr.Textbox(lines=2, placeholder="Ask me about studying tips or resources..."), outputs="text", # Define the output typetitle="**Academic Advisor**",description="Ask me for study tips, time management advice, or about resources to help with your studies!")# Stack the label on top of the interface verticallyinterface = gr.Interface(label, interface, layout="vertical")# Launch the chatbotinterface.launch(share=True)
app.py+8-10