bumk766fall2023 commited on
Commit
b818d16
·
1 Parent(s): be92746

polishing

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -44,8 +44,10 @@ def app_inits():
44
  return
45
 
46
  with gr.Blocks(theme = theme) as demo:
47
- chatbot = gr.Chatbot(value = [[None,'**How can I help you today?**']], elem_id="chatbot", layout = "panel", avatar_images=("images/user.jpg", "images/bot.jpg"),)
48
-
 
 
49
  #def get_params(request: gr.Request, param_hiddentextbox):
50
  def get_params(request: gr.Request):
51
 
@@ -112,7 +114,8 @@ with gr.Blocks(theme = theme) as demo:
112
  search_keyword = "None"
113
 
114
  if search_keyword == "None":
115
- bot_message = "Sorry, don't know any restaurants at this location..." + " [DEBUG (params: " + url_params + ")]"
 
116
  else:
117
  output_text = qs.get(search_keyword, "Keyword identified. No information found.")
118
  bot_message = output_text
 
44
  return
45
 
46
  with gr.Blocks(theme = theme) as demo:
47
+ #chatbot = gr.Chatbot(value = [[None,'**How can I help you today?**']], elem_id="chatbot", layout = "panel", avatar_images=("images/user.jpg", "images/bot.jpg"),)
48
+ chatbot = gr.Chatbot(elem_id="chatbot", layout = "panel", avatar_images=("images/user.jpg", "images/bot.jpg"),)
49
+
50
+
51
  #def get_params(request: gr.Request, param_hiddentextbox):
52
  def get_params(request: gr.Request):
53
 
 
114
  search_keyword = "None"
115
 
116
  if search_keyword == "None":
117
+ #bot_message = "Sorry, don't know any restaurants at this location..." + " [DEBUG (params: " + url_params + ")]"
118
+ bot_message = "Sorry, don't know any restaurants at this location..."
119
  else:
120
  output_text = qs.get(search_keyword, "Keyword identified. No information found.")
121
  bot_message = output_text