Spaces:
Sleeping
Sleeping
Update ImageGenerator.py
Browse files- ImageGenerator.py +1 -1
ImageGenerator.py
CHANGED
|
@@ -67,7 +67,7 @@ from io import BytesIO
|
|
| 67 |
|
| 68 |
HF_API_KEY = os.getenv("HF_API_KEY")
|
| 69 |
|
| 70 |
-
def
|
| 71 |
"""
|
| 72 |
Generate an image from the part of the prompt after the dash (-) via Hugging Face API.
|
| 73 |
Returns a PIL.Image object. If the API fails, returns a placeholder image.
|
|
|
|
| 67 |
|
| 68 |
HF_API_KEY = os.getenv("HF_API_KEY")
|
| 69 |
|
| 70 |
+
def generate_imagee(prompt):
|
| 71 |
"""
|
| 72 |
Generate an image from the part of the prompt after the dash (-) via Hugging Face API.
|
| 73 |
Returns a PIL.Image object. If the API fails, returns a placeholder image.
|