twimbit-ai commited on
Commit
ab5be59
·
verified ·
1 Parent(s): 9e0ae3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -42,7 +42,6 @@ def get_web_search_you(query):
42
  def predict(message, history, _n_web_search, _strategy):
43
  # docs = get_web_search_you(message)
44
 
45
- print(history)
46
  docs = get_docs_from_web(message, history[-1:], _n_web_search, _strategy)
47
  partial_message = ''
48
  information = ''
@@ -97,7 +96,10 @@ Information for reference:
97
  if chunk.choices[0].delta.content is not None:
98
  partial_message = partial_message + chunk.choices[0].delta.content
99
  yield partial_message
100
-
 
 
 
101
 
102
  n_web_search = gr.Slider(1, 10, value=3, step=1, label="Web searches",
103
  info="Choose between 1 and 10 number of web searches to do. Remember more the web searches more it will take time to reply.")
 
42
  def predict(message, history, _n_web_search, _strategy):
43
  # docs = get_web_search_you(message)
44
 
 
45
  docs = get_docs_from_web(message, history[-1:], _n_web_search, _strategy)
46
  partial_message = ''
47
  information = ''
 
96
  if chunk.choices[0].delta.content is not None:
97
  partial_message = partial_message + chunk.choices[0].delta.content
98
  yield partial_message
99
+
100
+ print(f"Question:- {message}")
101
+ print(f"Answer:- {partial_message}")
102
+ print(' ')
103
 
104
  n_web_search = gr.Slider(1, 10, value=3, step=1, label="Web searches",
105
  info="Choose between 1 and 10 number of web searches to do. Remember more the web searches more it will take time to reply.")