ritikaaA commited on
Commit
bff159e
·
verified ·
1 Parent(s): a873faa

Fixed chatbot disappearance

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def respond(message, history):
22
  return response['choices'][0]['message']['content'].strip()
23
 
24
  print("hello world")
25
- chatbot = gr.ChatInterface(respond, type="messages", title = "LLM Chatbox", theme = "gradio/soft")
26
  # declaring chatbot so that user can interact and see their conversation history and send new messages
27
 
28
  # ===== LOAD & PROCESS YOUR NEW CONTENT =====
@@ -130,10 +130,12 @@ about_text = "## About this bot Our bot will tell how to care for your dog's n
130
  with gr.Blocks(theme=custom_theme) as chatbot:
131
  with gr.Row(scale=3):
132
  with gr.Column(scale=1):
 
133
  with gr.Row():
134
  level = gr.Dropdown(
135
  ["Small", "Medium", "Large"], label="Dog Size", info="What is your dog's size?"
136
  )
 
137
 
138
  #with gr.Column(scale=1):
139
  #gr.Markdown(about_text)
 
22
  return response['choices'][0]['message']['content'].strip()
23
 
24
  print("hello world")
25
+ #chatbot = gr.ChatInterface(respond, type="messages", title = "LLM Chatbox", theme = "gradio/soft")
26
  # declaring chatbot so that user can interact and see their conversation history and send new messages
27
 
28
  # ===== LOAD & PROCESS YOUR NEW CONTENT =====
 
130
  with gr.Blocks(theme=custom_theme) as chatbot:
131
  with gr.Row(scale=3):
132
  with gr.Column(scale=1):
133
+ gr.ChatInterface(respond, type="messages", title = "LLM Chatbox", theme = "gradio/soft")
134
  with gr.Row():
135
  level = gr.Dropdown(
136
  ["Small", "Medium", "Large"], label="Dog Size", info="What is your dog's size?"
137
  )
138
+
139
 
140
  #with gr.Column(scale=1):
141
  #gr.Markdown(about_text)