mike dupont
commited on
Commit
•
198515a
1
Parent(s):
07b4558
wip
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from fastapi import FastAPI
|
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from fastapi.responses import JSONResponse
|
4 |
from fastapi.staticfiles import StaticFiles
|
5 |
-
import numpy as np
|
6 |
import argparse
|
7 |
import os
|
8 |
|
@@ -36,7 +36,7 @@ async def invert(text: str):
|
|
36 |
|
37 |
@app.get("/data")
|
38 |
async def get_data():
|
39 |
-
data = {"data":
|
40 |
return JSONResponse(data)
|
41 |
|
42 |
|
|
|
2 |
from fastapi.middleware.cors import CORSMiddleware
|
3 |
from fastapi.responses import JSONResponse
|
4 |
from fastapi.staticfiles import StaticFiles
|
5 |
+
#import numpy as np
|
6 |
import argparse
|
7 |
import os
|
8 |
|
|
|
36 |
|
37 |
@app.get("/data")
|
38 |
async def get_data():
|
39 |
+
data = {"data": [123]}
|
40 |
return JSONResponse(data)
|
41 |
|
42 |
|