TDMaule commited on
Commit
4094397
·
verified ·
1 Parent(s): 02d787d

update GRADIO

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -145,8 +145,10 @@ def chatbot(user_input, history):
145
  return history, ""
146
 
147
 
148
- # In the Gradio part — update the misleading text:
149
- with gr.Blocks(title="Student Academic Assistant – Phi-2", theme=gr.themes.Soft()) as demo:
 
 
150
  gr.Markdown("""
151
  # 🎓 Student Academic Assistant Chatbot
152
 
@@ -162,7 +164,7 @@ def chatbot(user_input, history):
162
  """)
163
 
164
  chatbot_ui = gr.Chatbot(height=500, label="Chat History")
165
-
166
  with gr.Row():
167
  user_input = gr.Textbox(
168
  placeholder="Ask me anything about studying...",
 
145
  return history, ""
146
 
147
 
148
+ # =============================================
149
+ # GRADIO INTERFACE
150
+ # =============================================
151
+ with gr.Blocks(title="Student Academic Assistant – Phi-2", theme=gr.themes.Soft()) as demo:
152
  gr.Markdown("""
153
  # 🎓 Student Academic Assistant Chatbot
154
 
 
164
  """)
165
 
166
  chatbot_ui = gr.Chatbot(height=500, label="Chat History")
167
+
168
  with gr.Row():
169
  user_input = gr.Textbox(
170
  placeholder="Ask me anything about studying...",