limitedonly41 commited on
Commit
7877744
·
verified ·
1 Parent(s): 4c4c006

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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, file_obj, f"Processed {len(results)} URLs successfully!"
 
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):