ankban commited on
Commit
09a4251
·
verified ·
1 Parent(s): b13d2bd

Update file_viewer_panel.py

Browse files
Files changed (1) hide show
  1. file_viewer_panel.py +1 -5
file_viewer_panel.py CHANGED
@@ -26,11 +26,7 @@ def file_viewer_dashboard(nickname_input):
26
  return text, text
27
 
28
  def handle_chat(query, text):
29
- prompt = f"Use this document to answer:
30
-
31
- {text}
32
-
33
- Question: {query}"
34
  return [(query, call_llm(prompt))]
35
 
36
  def make_accessible_version(text):
 
26
  return text, text
27
 
28
  def handle_chat(query, text):
29
+ prompt = f"Use this document to answer:\n\n{text}\n\nQuestion: {query}"
 
 
 
 
30
  return [(query, call_llm(prompt))]
31
 
32
  def make_accessible_version(text):