arielleharris commited on
Commit
8a23e3b
·
verified ·
1 Parent(s): 4f33433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -27,17 +27,15 @@ def faq_chatbot(user_input):
27
 
28
 
29
  # Create the Gradio interface
30
- interface = gr.Interface(
31
- fn=faq_chatbot,
32
- inputs=gr.Textbox(lines=2, placeholder="Ask me about studying tips or resources..."),
33
- outputs="text",
34
- title="**Academic Advisor**",
35
- description="Ask me for study tips, time management advice, or about resources to help with your studies!"
36
- )
37
-
38
- # Add text above the input box (optional)
39
  label = gr.Text("**Academic Advisor**")
40
- interface = gr.Interface(label, interface, layout="vertical") # Stack label on top of interface
 
 
 
 
 
 
 
41
 
42
  # Launch the chatbot
43
  interface.launch(share=True)
 
27
 
28
 
29
  # Create the Gradio interface
 
 
 
 
 
 
 
 
 
30
  label = gr.Text("**Academic Advisor**")
31
+
32
+ # Combine the label with the chatbot interface (specifying the output type)
33
+ interface = gr.Interface(fn=faq_chatbot, inputs=gr.Textbox(lines=2, placeholder="Ask me about studying tips or resources..."), outputs="text", # Define the output type
34
+ title="**Academic Advisor**",
35
+ description="Ask me for study tips, time management advice, or about resources to help with your studies!")
36
+
37
+ # Stack the label on top of the interface vertically
38
+ interface = gr.Interface(label, interface, layout="vertical")
39
 
40
  # Launch the chatbot
41
  interface.launch(share=True)