Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,8 +64,9 @@ class WebScrapingSimulator:
|
|
| 64 |
json_bytes = json.dumps(results, indent=2).encode('utf-8')
|
| 65 |
file_obj = io.BytesIO(json_bytes)
|
| 66 |
file_obj.name = "scraping_results.json" # optional but helpful
|
| 67 |
-
|
| 68 |
-
return results_text,
|
|
|
|
| 69 |
# Computer Vision simulator
|
| 70 |
@spaces.GPU
|
| 71 |
def simulate_cv_processing(image, model_type):
|
|
|
|
| 64 |
json_bytes = json.dumps(results, indent=2).encode('utf-8')
|
| 65 |
file_obj = io.BytesIO(json_bytes)
|
| 66 |
file_obj.name = "scraping_results.json" # optional but helpful
|
| 67 |
+
|
| 68 |
+
return results_text, ("scraping_results.json", json_bytes), f"Processed {len(results)} URLs successfully!"
|
| 69 |
+
# return results_text, file_obj, f"Processed {len(results)} URLs successfully!"
|
| 70 |
# Computer Vision simulator
|
| 71 |
@spaces.GPU
|
| 72 |
def simulate_cv_processing(image, model_type):
|