Spaces:
Sleeping
Sleeping
location changed
Browse files
app.py
CHANGED
@@ -59,6 +59,14 @@ class UserLogin(BaseModel):
|
|
59 |
email: str
|
60 |
password: str
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
@app.post("/signup")
|
63 |
async def signup(user_data: UserSignup):
|
64 |
try:
|
@@ -325,12 +333,7 @@ async def generate_excel(predictions: list):
|
|
325 |
'''
|
326 |
|
327 |
# code to accept the localhost to get images from
|
328 |
-
|
329 |
-
CORSMiddleware,
|
330 |
-
allow_origins=["*"],
|
331 |
-
allow_methods=["*"],
|
332 |
-
allow_headers=["*"],
|
333 |
-
)
|
334 |
|
335 |
if __name__ == "__main__":
|
336 |
import uvicorn
|
|
|
59 |
email: str
|
60 |
password: str
|
61 |
|
62 |
+
app.add_middleware(
|
63 |
+
CORSMiddleware,
|
64 |
+
allow_origins=["*"],
|
65 |
+
allow_methods=["*"],
|
66 |
+
allow_headers=["*"],
|
67 |
+
)
|
68 |
+
|
69 |
+
|
70 |
@app.post("/signup")
|
71 |
async def signup(user_data: UserSignup):
|
72 |
try:
|
|
|
333 |
'''
|
334 |
|
335 |
# code to accept the localhost to get images from
|
336 |
+
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
if __name__ == "__main__":
|
339 |
import uvicorn
|