sunny-gurung commited on
Commit
cf44030
·
verified ·
1 Parent(s): 846940f

feat(ui):updated height

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import time
5
  def streaming_response(user_input, history):
6
  response = chatbot_response(user_input, history)
7
  for i in range(len(response)):
8
- time.sleep(0.3)
9
  yield response[:i+1]
10
 
11
  #Response
@@ -25,6 +25,7 @@ with gr.Blocks() as app:
25
  chatbot = gr.ChatInterface(
26
  streaming_response,
27
  type="messages",
 
28
  title="Study Assistance Chatbot",
29
  description="Welcome! Ask me anything related to your academic studies.",
30
  examples=["Hello","Hi", "Hey", "Help"]
 
5
  def streaming_response(user_input, history):
6
  response = chatbot_response(user_input, history)
7
  for i in range(len(response)):
8
+ time.sleep(0.1)
9
  yield response[:i+1]
10
 
11
  #Response
 
25
  chatbot = gr.ChatInterface(
26
  streaming_response,
27
  type="messages",
28
+ chatbot=gr.Chatbot(height=500)
29
  title="Study Assistance Chatbot",
30
  description="Welcome! Ask me anything related to your academic studies.",
31
  examples=["Hello","Hi", "Hey", "Help"]