Spaces:
Sleeping
Sleeping
Update scrape_3gpp.py
Browse files- scrape_3gpp.py +3 -2
scrape_3gpp.py
CHANGED
@@ -70,10 +70,11 @@ import pandas as pd
|
|
70 |
import gradio as gr
|
71 |
|
72 |
|
73 |
-
def scrape(url,
|
74 |
filenames = []
|
75 |
status_filenames = []
|
76 |
df = pd.DataFrame() # Initialize df to ensure it's always defined
|
|
|
77 |
|
78 |
# Try to process the Excel file if provided and valid
|
79 |
if excel_file and os.path.exists(excel_file):
|
@@ -290,7 +291,7 @@ def extractionPrincipale(url, excel_file=None, status_list=None, progress=gr.Pro
|
|
290 |
except Exception as e:
|
291 |
print(f"Not able to retrieve informations from 'guide.xlsx' ")
|
292 |
|
293 |
-
result, count = scrape(url,
|
294 |
if result:
|
295 |
print("Success")
|
296 |
else:
|
|
|
70 |
import gradio as gr
|
71 |
|
72 |
|
73 |
+
def scrape(url, folder_name, status_list, sorted_files, progress=gr.Progress()):
|
74 |
filenames = []
|
75 |
status_filenames = []
|
76 |
df = pd.DataFrame() # Initialize df to ensure it's always defined
|
77 |
+
excel_file = "guide_status.xlsx"
|
78 |
|
79 |
# Try to process the Excel file if provided and valid
|
80 |
if excel_file and os.path.exists(excel_file):
|
|
|
291 |
except Exception as e:
|
292 |
print(f"Not able to retrieve informations from 'guide.xlsx' ")
|
293 |
|
294 |
+
result, count = scrape(url, folder_name, status_list, sorted_files)
|
295 |
if result:
|
296 |
print("Success")
|
297 |
else:
|