Update app.py
Browse files
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://
|
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}")
|