Spaces:
Runtime error
Runtime error
update
Browse files
main.py
CHANGED
|
@@ -6,9 +6,12 @@ import base64
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
-
|
| 10 |
@app.get("/")
|
| 11 |
async def root():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
images = []
|
| 13 |
|
| 14 |
with open('workdir/lion.jpg', 'rb') as open_file:
|
|
|
|
| 6 |
|
| 7 |
app = FastAPI()
|
| 8 |
|
|
|
|
| 9 |
@app.get("/")
|
| 10 |
async def root():
|
| 11 |
+
return "OK!"
|
| 12 |
+
|
| 13 |
+
@app.get("/api")
|
| 14 |
+
async def cal_api():
|
| 15 |
images = []
|
| 16 |
|
| 17 |
with open('workdir/lion.jpg', 'rb') as open_file:
|