Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -191,11 +191,12 @@ def create_interface():
|
|
191 |
fn=on_generate,
|
192 |
inputs=[voice_dropdown, video_url_input, text_input],
|
193 |
outputs=[video_output, status_output],
|
194 |
-
|
195 |
)
|
196 |
|
197 |
return app
|
198 |
|
199 |
if __name__ == "__main__":
|
200 |
app = create_interface()
|
201 |
-
app.
|
|
|
|
191 |
fn=on_generate,
|
192 |
inputs=[voice_dropdown, video_url_input, text_input],
|
193 |
outputs=[video_output, status_output],
|
194 |
+
api_name="generate" # This allows the function to be called via API
|
195 |
)
|
196 |
|
197 |
return app
|
198 |
|
199 |
if __name__ == "__main__":
|
200 |
app = create_interface()
|
201 |
+
app.queue(concurrency_count=5, max_size=20) # Allow up to 5 concurrent tasks, queue up to 20
|
202 |
+
app.launch()
|