Spaces:
Sleeping
Sleeping
Commit
·
e8d6ee4
1
Parent(s):
b978171
fix: server.py
Browse files
server.py
CHANGED
|
@@ -7,7 +7,9 @@ orchestrator = WebScrapingOrchestrator()
|
|
| 7 |
async def scrape_async(url):
|
| 8 |
result = await orchestrator.process_url(url)
|
| 9 |
if "error" in result:
|
| 10 |
-
return
|
|
|
|
|
|
|
| 11 |
return {
|
| 12 |
"URL": result.get("url"),
|
| 13 |
"Title": result.get("title"),
|
|
|
|
| 7 |
async def scrape_async(url):
|
| 8 |
result = await orchestrator.process_url(url)
|
| 9 |
if "error" in result:
|
| 10 |
+
return {
|
| 11 |
+
"Error": {result['error']},
|
| 12 |
+
}
|
| 13 |
return {
|
| 14 |
"URL": result.get("url"),
|
| 15 |
"Title": result.get("title"),
|