Pepguy commited on
Commit
e4a2e5e
·
verified ·
1 Parent(s): 4704dc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,6 +2,7 @@
2
 
3
  from typing import List, Dict, Optional, Tuple
4
  from fastapi import FastAPI, HTTPException
 
5
  from pydantic import BaseModel, Field
6
  from sklearn.neighbors import KDTree
7
  import numpy as np
@@ -58,7 +59,8 @@ class InMemoryRepo(DataRepository):
58
  ]
59
 
60
  # FastAPI setup
61
- app = FastAPI()
 
62
  repo = InMemoryRepo()
63
 
64
  @app.post("/users", response_model=Profile)
 
2
 
3
  from typing import List, Dict, Optional, Tuple
4
  from fastapi import FastAPI, HTTPException
5
+ from flask import Flask, request, render_template_string, jsonify
6
  from pydantic import BaseModel, Field
7
  from sklearn.neighbors import KDTree
8
  import numpy as np
 
59
  ]
60
 
61
  # FastAPI setup
62
+ # app = FastAPI()
63
+ app = Flask(__name__)
64
  repo = InMemoryRepo()
65
 
66
  @app.post("/users", response_model=Profile)