Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,15 @@ app = Flask(
|
|
| 10 |
static_folder=os.path.join(base_dir, 'static')
|
| 11 |
)
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
@app.route('/')
|
| 14 |
def home():
|
| 15 |
return render_template('index.html')
|
|
|
|
| 10 |
static_folder=os.path.join(base_dir, 'static')
|
| 11 |
)
|
| 12 |
|
| 13 |
+
from fastapi import FastAPI
|
| 14 |
+
|
| 15 |
+
app = FastAPI()
|
| 16 |
+
|
| 17 |
+
@app.get("/")
|
| 18 |
+
def greet_json():
|
| 19 |
+
return {"Hello": "World!"}
|
| 20 |
+
|
| 21 |
+
|
| 22 |
@app.route('/')
|
| 23 |
def home():
|
| 24 |
return render_template('index.html')
|