Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,10 +31,13 @@ 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 |
-
inputs_label="**Academic Advisor**", # Change the label to "Academic Advisor"
|
| 37 |
)
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Launch the chatbot
|
| 40 |
interface.launch(share=True)
|
|
|
|
| 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)
|