MySafeCode commited on
Commit
afe287e
·
verified ·
1 Parent(s): ed309bf

Update aaa.py

Browse files
Files changed (1) hide show
  1. aaa.py +3 -2
aaa.py CHANGED
@@ -124,8 +124,9 @@ def generate_cover(
124
  else:
125
  if not uploaded_file:
126
  return "❌ Please upload a file first"
127
- upload_url = get_file_path(uploaded_file)
128
- upload_url = f"/file={get_file_path(uploaded_file)}"
 
129
  if not upload_url:
130
  return "❌ Could not get file path from uploaded file"
131
 
 
124
  else:
125
  if not uploaded_file:
126
  return "❌ Please upload a file first"
127
+ #upload_url = get_file_path(uploaded_file)
128
+ #upload_url = f"/file={get_file_path(uploaded_file)}"
129
+ upload_url = f"https://1hit-upload-cover.hf.space/gradio_api/file={get_file_path(uploaded_file)}"
130
  if not upload_url:
131
  return "❌ Could not get file path from uploaded file"
132