Spaces:
Sleeping
Sleeping
Update app/main.py
Browse files- app/main.py +3 -2
app/main.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
@app.get("/")
|
| 6 |
def read_root():
|
| 7 |
-
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
import datetime
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
@app.get("/")
|
| 6 |
def read_root():
|
| 7 |
+
now = datetime.datetime.now()
|
| 8 |
+
return {"Hello": "World at"+ now.strftime("%Y-%m-%d %H:%M:%S")}
|