Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -365,14 +365,24 @@ async def head_video():
|
|
| 365 |
|
| 366 |
@app.head("/status/text")
|
| 367 |
async def head_video():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
return Response(
|
| 369 |
status_code=200,
|
| 370 |
headers={
|
| 371 |
"Content-Type": "video/mp4",
|
| 372 |
"Accept-Ranges": "bytes",
|
| 373 |
-
}
|
|
|
|
| 374 |
)
|
| 375 |
|
|
|
|
|
|
|
|
|
|
| 376 |
@app.post("/gen/image")
|
| 377 |
@app.get("/genimg/{prompt}")
|
| 378 |
async def generate_image(request: Request, prompt: str = None):
|
|
|
|
| 365 |
|
| 366 |
@app.head("/status/text")
|
| 367 |
async def head_video():
|
| 368 |
+
status = {
|
| 369 |
+
"Video Generation": 500
|
| 370 |
+
"Image Generation": 200
|
| 371 |
+
"Lightning-Text v2": 200
|
| 372 |
+
"Music/SFX Generation": 200
|
| 373 |
+
}
|
| 374 |
return Response(
|
| 375 |
status_code=200,
|
| 376 |
headers={
|
| 377 |
"Content-Type": "video/mp4",
|
| 378 |
"Accept-Ranges": "bytes",
|
| 379 |
+
},
|
| 380 |
+
content = status
|
| 381 |
)
|
| 382 |
|
| 383 |
+
@app.get("/status")
|
| 384 |
+
async def get_status():
|
| 385 |
+
status
|
| 386 |
@app.post("/gen/image")
|
| 387 |
@app.get("/genimg/{prompt}")
|
| 388 |
async def generate_image(request: Request, prompt: str = None):
|