Chrunos commited on
Commit
37f9d0f
·
verified ·
1 Parent(s): b905f4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -149,7 +149,7 @@ async def download_file(request: DownloadRequest):
149
  file_size = os.path.getsize(downloaded_file)
150
 
151
  # Generate the download URL and URL encode the filename
152
- space_url = os.getenv("SPACE_URL", "https://tecuts-vob.hf.space")
153
  encoded_filename = quote(downloaded_file) # URL encode the filename
154
  download_url = f"{space_url}/files/{timestamp}/{encoded_filename}"
155
  logger.info(f"Generated download URL: {download_url}")
 
149
  file_size = os.path.getsize(downloaded_file)
150
 
151
  # Generate the download URL and URL encode the filename
152
+ space_url = os.getenv("SPACE_URL", "https://chrunos-vob.hf.space")
153
  encoded_filename = quote(downloaded_file) # URL encode the filename
154
  download_url = f"{space_url}/files/{timestamp}/{encoded_filename}"
155
  logger.info(f"Generated download URL: {download_url}")