Fu-Chuen commited on
Commit
40d888f
·
1 Parent(s): ca10428

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -319,11 +319,11 @@ import shutil
319
  # else:
320
  # print("Could not find the 'Test' directory in the project.")
321
 
322
- import requests
323
 
324
- # Hugging Face parameters
325
- project_name = "Fu-Chuen/Fungus_Classification_Genus_Species"
326
- api_url = f"https://huggingface.co/api/repos/redirect?path={project_name}/Test"
327
  # # upload_image_path = "path/to/uploaded/image.jpg" # Replace with the path of the uploaded image
328
 
329
  def upload_file(files):
@@ -364,7 +364,7 @@ def upload_file(files):
364
 
365
  except:
366
  print("\nError occurred while copying file.\n")
367
- print(f'\nfile_paths: {file_paths}\n')
368
  return file_paths
369
 
370
  # # Define the path to the directory you want to delete files from
 
319
  # else:
320
  # print("Could not find the 'Test' directory in the project.")
321
 
322
+ # import requests
323
 
324
+ # # Hugging Face parameters
325
+ # project_name = "Fu-Chuen/Fungus_Classification_Genus_Species"
326
+ # api_url = f"https://huggingface.co/api/repos/redirect?path={project_name}/Test"
327
  # # upload_image_path = "path/to/uploaded/image.jpg" # Replace with the path of the uploaded image
328
 
329
  def upload_file(files):
 
364
 
365
  except:
366
  print("\nError occurred while copying file.\n")
367
+ # print(f'\nfile_paths: {file_paths}\n')
368
  return file_paths
369
 
370
  # # Define the path to the directory you want to delete files from