Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,10 @@ class VideoJsonRequest(BaseModel):
|
|
| 11 |
def to_b64(path):
|
| 12 |
with open(path, "rb") as f: return base64.b64encode(f.read()).decode('utf-8')
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
@app.post("/process-video")
|
| 15 |
async def process(req: VideoJsonRequest):
|
| 16 |
uid = str(uuid.uuid4())
|
|
|
|
| 11 |
def to_b64(path):
|
| 12 |
with open(path, "rb") as f: return base64.b64encode(f.read()).decode('utf-8')
|
| 13 |
|
| 14 |
+
@app.get("/")
|
| 15 |
+
async def index():
|
| 16 |
+
return {"success": True}
|
| 17 |
+
|
| 18 |
@app.post("/process-video")
|
| 19 |
async def process(req: VideoJsonRequest):
|
| 20 |
uid = str(uuid.uuid4())
|