twimbit-ai commited on
Commit
0c57f14
·
verified ·
1 Parent(s): 9b25fd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ Information for reference:
92
  max_tokens=1000,
93
  top_p=0.5,
94
  stream=True)
95
- partial_message += '\n\n'
96
  for chunk in response:
97
  if chunk.choices[0].delta.content is not None:
98
  partial_message = partial_message + chunk.choices[0].delta.content
@@ -101,7 +101,7 @@ Information for reference:
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.")
104
- strategy = gr.Radio(["Deep", "Normal"], label="Strategy", value="Normal",
105
  info="Select web search analysis type. Please keep in mind that deep analysis will take more time than normal analysis.")
106
 
107
  app = gr.ChatInterface(predict, additional_inputs=[n_web_search, strategy])
 
92
  max_tokens=1000,
93
  top_p=0.5,
94
  stream=True)
95
+ partial_message = ''
96
  for chunk in response:
97
  if chunk.choices[0].delta.content is not None:
98
  partial_message = partial_message + chunk.choices[0].delta.content
 
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.")
104
+ strategy = gr.Radio(["Deep", "Normal", "Deep Pro"], label="Strategy", value="Normal",
105
  info="Select web search analysis type. Please keep in mind that deep analysis will take more time than normal analysis.")
106
 
107
  app = gr.ChatInterface(predict, additional_inputs=[n_web_search, strategy])