Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ async def retry_query(payload, retries=5, delay=30):
|
|
| 39 |
await asyncio.sleep(delay)
|
| 40 |
return None
|
| 41 |
|
| 42 |
-
@app.route('/
|
| 43 |
async def generate_image():
|
| 44 |
try:
|
| 45 |
data = request.json # This is synchronous
|
|
|
|
| 39 |
await asyncio.sleep(delay)
|
| 40 |
return None
|
| 41 |
|
| 42 |
+
@app.route('/', methods=['POST'])
|
| 43 |
async def generate_image():
|
| 44 |
try:
|
| 45 |
data = request.json # This is synchronous
|