openfree commited on
Commit
7bcb745
·
verified ·
1 Parent(s): bcf63da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -70,7 +70,7 @@ def dataset_converter(input_file, conversion_type, parquet_url):
70
  # Use uploaded file if available; otherwise try the provided URL
71
  if input_file is not None:
72
  df = pd.read_parquet(BytesIO(file_bytes))
73
- file_name = file_name # already set
74
  elif parquet_url:
75
  response = requests.get(parquet_url)
76
  response.raise_for_status() # Ensure the request was successful
 
70
  # Use uploaded file if available; otherwise try the provided URL
71
  if input_file is not None:
72
  df = pd.read_parquet(BytesIO(file_bytes))
73
+ # file_name is already set from the uploaded file
74
  elif parquet_url:
75
  response = requests.get(parquet_url)
76
  response.raise_for_status() # Ensure the request was successful