rogerxavier
commited on
Commit
•
9f7f597
1
Parent(s):
03bba3d
Update api.py
Browse files
api.py
CHANGED
@@ -6,6 +6,7 @@ import numpy as np
|
|
6 |
import urllib.request
|
7 |
import io
|
8 |
import os
|
|
|
9 |
|
10 |
app = FastAPI()
|
11 |
|
@@ -18,6 +19,13 @@ def t5(input):
|
|
18 |
|
19 |
return {"output": input}
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
@app.post("/getCoordinates")
|
23 |
async def getCoordinates(image: UploadFile = File(...)):
|
|
|
6 |
import urllib.request
|
7 |
import io
|
8 |
import os
|
9 |
+
from moviepyTest import test
|
10 |
|
11 |
app = FastAPI()
|
12 |
|
|
|
19 |
|
20 |
return {"output": input}
|
21 |
|
22 |
+
@app.get("/moviepyTest")
|
23 |
+
def t5():
|
24 |
+
result = test()
|
25 |
+
|
26 |
+
return {"output": result}
|
27 |
+
|
28 |
+
|
29 |
|
30 |
@app.post("/getCoordinates")
|
31 |
async def getCoordinates(image: UploadFile = File(...)):
|