tejani commited on
Commit
0896af6
·
verified ·
1 Parent(s): f750267

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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://{os.getenv('SPACE_ID', 'your-username-space-name')}.hf.space/file={str(file_path)}"
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