Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
import asyncio
|
| 2 |
-
from g4f.client import Client
|
| 3 |
-
|
| 4 |
-
async def main():
|
| 5 |
-
client = Client()
|
| 6 |
-
|
| 7 |
-
response = await client.images.async_generate(
|
| 8 |
-
prompt="a white siamese cat",
|
| 9 |
-
model="flux"
|
| 10 |
-
)
|
| 11 |
-
|
| 12 |
-
image_url = response.data[0].url
|
| 13 |
-
print(f"Generated image URL: {image_url}")
|
| 14 |
-
|
| 15 |
-
asyncio.run(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|