chansung commited on
Commit
970c2c9
·
1 Parent(s): 53796a7

remove batch params

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks(css=PARENT_BLOCK_CSS) as demo:
145
  gr.Markdown(f"{BOTTOM_LINE}")
146
 
147
  send_prompt_btn.click(
148
- chat_batch if batch_enabled else chat_stream,
149
  [context_txtbox, instruction_txtbox, state_chatbot],
150
  [state_chatbot, chatbot, context_txtbox],
151
  )
@@ -156,7 +156,7 @@ with gr.Blocks(css=PARENT_BLOCK_CSS) as demo:
156
  )
157
 
158
  continue_btn.click(
159
- chat_batch if batch_enabled else chat_stream,
160
  [context_txtbox, continue_txtbox, state_chatbot],
161
  [state_chatbot, chatbot, context_txtbox],
162
  )
@@ -167,7 +167,7 @@ with gr.Blocks(css=PARENT_BLOCK_CSS) as demo:
167
  )
168
 
169
  summarize_btn.click(
170
- chat_batch if batch_enabled else chat_stream,
171
  [context_txtbox, summrize_txtbox, state_chatbot],
172
  [state_chatbot, chatbot, context_txtbox],
173
  )
 
145
  gr.Markdown(f"{BOTTOM_LINE}")
146
 
147
  send_prompt_btn.click(
148
+ chat_stream,
149
  [context_txtbox, instruction_txtbox, state_chatbot],
150
  [state_chatbot, chatbot, context_txtbox],
151
  )
 
156
  )
157
 
158
  continue_btn.click(
159
+ chat_stream,
160
  [context_txtbox, continue_txtbox, state_chatbot],
161
  [state_chatbot, chatbot, context_txtbox],
162
  )
 
167
  )
168
 
169
  summarize_btn.click(
170
+ chat_stream,
171
  [context_txtbox, summrize_txtbox, state_chatbot],
172
  [state_chatbot, chatbot, context_txtbox],
173
  )