Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,10 +148,10 @@ def generate_image(prompt: str) -> str:
|
|
| 148 |
try:
|
| 149 |
client = Client()
|
| 150 |
response = client.images.generate(
|
| 151 |
-
model="flux-
|
| 152 |
prompt=prompt,
|
| 153 |
response_format="url",
|
| 154 |
-
provider='
|
| 155 |
)
|
| 156 |
|
| 157 |
image_url = response.data[0].url
|
|
|
|
| 148 |
try:
|
| 149 |
client = Client()
|
| 150 |
response = client.images.generate(
|
| 151 |
+
model="flux-pro",
|
| 152 |
prompt=prompt,
|
| 153 |
response_format="url",
|
| 154 |
+
provider='PollinationsAI'
|
| 155 |
)
|
| 156 |
|
| 157 |
image_url = response.data[0].url
|