Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,8 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
120 |
trait_gen.click(
|
121 |
extract_traits,
|
122 |
[video],
|
123 |
-
[traits, chatbot, user_input, clear, regen, stop]
|
|
|
124 |
)
|
125 |
|
126 |
conv = user_input.submit(
|
@@ -131,7 +132,8 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
131 |
max_new_tokens, temperature,
|
132 |
top_p, top_k, repetition_penalty,
|
133 |
],
|
134 |
-
[chatbot, user_input, clear, regen]
|
|
|
135 |
)
|
136 |
|
137 |
clear.click(
|
@@ -140,7 +142,8 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
140 |
gr.Button(interactive=False),
|
141 |
gr.Button(interactive=False),
|
142 |
],
|
143 |
-
None, [chatbot, clear, regen]
|
|
|
144 |
)
|
145 |
|
146 |
conv_regen = regen.click(
|
@@ -151,7 +154,8 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
151 |
max_new_tokens, temperature,
|
152 |
top_p, top_k, repetition_penalty,
|
153 |
],
|
154 |
-
[chatbot, user_input, clear, regen]
|
|
|
155 |
)
|
156 |
|
157 |
stop.click(
|
@@ -160,7 +164,8 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
160 |
gr.Button(interactive=True),
|
161 |
gr.Button(interactive=True),
|
162 |
], None, [clear, regen, stop],
|
163 |
-
cancels=[conv, conv_regen]
|
|
|
164 |
)
|
165 |
|
166 |
gr.Examples(
|
@@ -172,7 +177,6 @@ with gr.Blocks(css="styles.css", theme=gr.themes.Soft()) as demo:
|
|
172 |
)
|
173 |
|
174 |
demo.queue(
|
175 |
-
concurrency_count=5,
|
176 |
max_size=256
|
177 |
).launch(
|
178 |
debug=True
|
|
|
120 |
trait_gen.click(
|
121 |
extract_traits,
|
122 |
[video],
|
123 |
+
[traits, chatbot, user_input, clear, regen, stop],
|
124 |
+
concurrency_count=5,
|
125 |
)
|
126 |
|
127 |
conv = user_input.submit(
|
|
|
132 |
max_new_tokens, temperature,
|
133 |
top_p, top_k, repetition_penalty,
|
134 |
],
|
135 |
+
[chatbot, user_input, clear, regen],
|
136 |
+
concurrency_count=5,
|
137 |
)
|
138 |
|
139 |
clear.click(
|
|
|
142 |
gr.Button(interactive=False),
|
143 |
gr.Button(interactive=False),
|
144 |
],
|
145 |
+
None, [chatbot, clear, regen],
|
146 |
+
concurrency_count=5,
|
147 |
)
|
148 |
|
149 |
conv_regen = regen.click(
|
|
|
154 |
max_new_tokens, temperature,
|
155 |
top_p, top_k, repetition_penalty,
|
156 |
],
|
157 |
+
[chatbot, user_input, clear, regen],
|
158 |
+
concurrency_count=5,
|
159 |
)
|
160 |
|
161 |
stop.click(
|
|
|
164 |
gr.Button(interactive=True),
|
165 |
gr.Button(interactive=True),
|
166 |
], None, [clear, regen, stop],
|
167 |
+
cancels=[conv, conv_regen],
|
168 |
+
concurrency_count=5,
|
169 |
)
|
170 |
|
171 |
gr.Examples(
|
|
|
177 |
)
|
178 |
|
179 |
demo.queue(
|
|
|
180 |
max_size=256
|
181 |
).launch(
|
182 |
debug=True
|