Suparious commited on
Commit
dde1a6b
·
verified ·
1 Parent(s): b645949

Adding some examples

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,8 @@ from duckduckgo_search import DDGS
7
  from trafilatura import fetch_url, extract
8
 
9
  model_selected = "Mistral-7B-Instruct-v0.3-Q6_K.gguf"
 
 
10
 
11
  subprocess.run(
12
  'pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124',
@@ -274,6 +276,7 @@ demo = gr.ChatInterface(
274
  undo_btn="Undo",
275
  clear_btn="Clear",
276
  submit_btn="Send",
 
277
  description="Llama-cpp-agent: Chat Web Search DDG Agent",
278
  chatbot=gr.Chatbot(scale=1, placeholder=PLACEHOLDER)
279
  )
 
7
  from trafilatura import fetch_url, extract
8
 
9
  model_selected = "Mistral-7B-Instruct-v0.3-Q6_K.gguf"
10
+ examples = [["How many NBA championship wins do the Chicago Bulls hold?"],
11
+ ["Write a report on the top 5 events in the UK summer 2024."]]
12
 
13
  subprocess.run(
14
  'pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124',
 
276
  undo_btn="Undo",
277
  clear_btn="Clear",
278
  submit_btn="Send",
279
+ examples = (examples),
280
  description="Llama-cpp-agent: Chat Web Search DDG Agent",
281
  chatbot=gr.Chatbot(scale=1, placeholder=PLACEHOLDER)
282
  )