joel commited on
Commit
13699f1
·
1 Parent(s): 655a82b

Fix: Missing await in gradio_scrape and sources.json syntax

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -365,7 +365,7 @@ async def gradio_scrape(progress=gr.Progress()):
365
 
366
  progress(1.0, desc="Terminé!")
367
 
368
- stats = search_engine.get_stats()
369
  return f"✅ Scraping terminé!\n\n**{stats['total_documents']} documents** dans la base"
370
 
371
  except Exception as e:
 
365
 
366
  progress(1.0, desc="Terminé!")
367
 
368
+ stats = await search_engine.get_stats()
369
  return f"✅ Scraping terminé!\n\n**{stats['total_documents']} documents** dans la base"
370
 
371
  except Exception as e: