alanchen1115 commited on
Commit
316365e
Β·
verified Β·
1 Parent(s): 922ec13

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -120,7 +120,7 @@ def generate_and_upload_image(prompt: str) -> str:
120
  file_name = f"static/{os.urandom(16).hex()}.png"
121
  image.save(file_name, format="PNG")
122
 
123
- image_url = os.path.join(os.getenv("HF_SPACE"), file_name)
124
  return image_url
125
 
126
  return "εœ–η‰‡η”Ÿζˆε€±ζ•—γ€‚"
 
120
  file_name = f"static/{os.urandom(16).hex()}.png"
121
  image.save(file_name, format="PNG")
122
 
123
+ image_url = os.path.join(os.getenv("HF_SPACE"), file_name) # Embed this Space
124
  return image_url
125
 
126
  return "εœ–η‰‡η”Ÿζˆε€±ζ•—γ€‚"