cyberandy commited on
Commit
92aec69
·
1 Parent(s): 3962460
Files changed (1) hide show
  1. app.py +3 -4
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
- async def process_url_async_wrapper(url, depth, pages):
265
- return await process_url(url, depth, pages)
266
 
267
  generate_btn.click(
268
- fn=process_url_async_wrapper,
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()