chansung commited on
Commit
f239270
1 Parent(s): faf19c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -121,7 +121,7 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
121
  extract_traits,
122
  [video],
123
  [traits, chatbot, user_input, clear, regen, stop],
124
- concurrency_count=5,
125
  )
126
 
127
  conv = user_input.submit(
@@ -133,7 +133,7 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
133
  top_p, top_k, repetition_penalty,
134
  ],
135
  [chatbot, user_input, clear, regen],
136
- concurrency_count=5,
137
  )
138
 
139
  clear.click(
@@ -143,7 +143,7 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
143
  gr.Button(interactive=False),
144
  ],
145
  None, [chatbot, clear, regen],
146
- concurrency_count=5,
147
  )
148
 
149
  conv_regen = regen.click(
@@ -155,7 +155,7 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
155
  top_p, top_k, repetition_penalty,
156
  ],
157
  [chatbot, user_input, clear, regen],
158
- concurrency_count=5,
159
  )
160
 
161
  stop.click(
@@ -165,7 +165,7 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
165
  gr.Button(interactive=True),
166
  ], None, [clear, regen, stop],
167
  cancels=[conv, conv_regen],
168
- concurrency_count=5,
169
  )
170
 
171
  gr.Examples(
 
121
  extract_traits,
122
  [video],
123
  [traits, chatbot, user_input, clear, regen, stop],
124
+ concurrency_limit=5,
125
  )
126
 
127
  conv = user_input.submit(
 
133
  top_p, top_k, repetition_penalty,
134
  ],
135
  [chatbot, user_input, clear, regen],
136
+ concurrency_limit=5,
137
  )
138
 
139
  clear.click(
 
143
  gr.Button(interactive=False),
144
  ],
145
  None, [chatbot, clear, regen],
146
+ concurrency_limit=5,
147
  )
148
 
149
  conv_regen = regen.click(
 
155
  top_p, top_k, repetition_penalty,
156
  ],
157
  [chatbot, user_input, clear, regen],
158
+ concurrency_limit=5,
159
  )
160
 
161
  stop.click(
 
165
  gr.Button(interactive=True),
166
  ], None, [clear, regen, stop],
167
  cancels=[conv, conv_regen],
168
+ concurrency_limit=5,
169
  )
170
 
171
  gr.Examples(