Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ async def save_file_and_get_url(file: UploadFile) -> str:
|
|
39 |
buffer.write(content)
|
40 |
|
41 |
# Generate public URL (Hugging Face Spaces format)
|
42 |
-
public_url = f"https://
|
43 |
return public_url
|
44 |
|
45 |
# Updated endpoint to handle file uploads and proxy the request
|
|
|
39 |
buffer.write(content)
|
40 |
|
41 |
# Generate public URL (Hugging Face Spaces format)
|
42 |
+
public_url = f"https://tejani-tryapi.hf.space/file={str(file_path)}"
|
43 |
return public_url
|
44 |
|
45 |
# Updated endpoint to handle file uploads and proxy the request
|