Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -261,15 +261,14 @@ with gr.Blocks(theme=theme) as iface:
|
|
261 |
with gr.Row():
|
262 |
status = gr.Textbox(label="Status", interactive=False)
|
263 |
|
264 |
-
|
265 |
-
return
|
266 |
|
267 |
generate_btn.click(
|
268 |
-
fn=
|
269 |
inputs=[url_input, depth_input, pages_input],
|
270 |
outputs=[output, status],
|
271 |
)
|
272 |
|
273 |
-
|
274 |
if __name__ == "__main__":
|
275 |
iface.launch()
|
|
|
261 |
with gr.Row():
|
262 |
status = gr.Textbox(label="Status", interactive=False)
|
263 |
|
264 |
+
def process_url_sync_wrapper(url, depth, pages):
|
265 |
+
return asyncio.run(process_url(url, depth, pages))
|
266 |
|
267 |
generate_btn.click(
|
268 |
+
fn=process_url_sync_wrapper,
|
269 |
inputs=[url_input, depth_input, pages_input],
|
270 |
outputs=[output, status],
|
271 |
)
|
272 |
|
|
|
273 |
if __name__ == "__main__":
|
274 |
iface.launch()
|