mgetz commited on
Commit
a1bbb6d
·
verified ·
1 Parent(s): 9b1e921

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ print(top_results)
109
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
110
 
111
  def respond(message, history):
112
- duck_chunks = get_top_chunks(query, chunk_embeddings, text_chunks)
113
  print(duck_chunks)
114
  duck_info = "\n".join(duck_chunks)
115
  messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]
@@ -158,6 +158,6 @@ with gr.Blocks(theme=gr.themes.Citrus(
158
  )) as chatbot:
159
  with gr.Row(scale=1):
160
  gr.Image("Quentin.png", show_label = False, show_share_button = False, show_download_button = False)
161
- gr.ChatInterface(respond, type="messages", theme="mgetz/Celeb_glitzy", title="Quentin, the Helpful Quackbot")
162
 
163
  chatbot.launch()
 
109
  client = InferenceClient("Qwen/Qwen2.5-72B-Instruct")
110
 
111
  def respond(message, history):
112
+ duck_chunks = get_top_chunks(message, chunk_embeddings, text_chunks)
113
  print(duck_chunks)
114
  duck_info = "\n".join(duck_chunks)
115
  messages = [{"role": "system", "content": f"You are a cool, helpful chatbot named Quentin. You are a kind rubber duck, with strong human emotions who helps the user with their questions. Make sure to use duck-themed references in your responses. Base your response on the provided context: {duck_info}"}]
 
158
  )) as chatbot:
159
  with gr.Row(scale=1):
160
  gr.Image("Quentin.png", show_label = False, show_share_button = False, show_download_button = False)
161
+ gr.ChatInterface(respond, type="messages", title="Quentin, the Helpful Quackbot")
162
 
163
  chatbot.launch()