Spaces:
No application file
No application file
EddyGiusepe
commited on
Commit
·
a620729
1
Parent(s):
2f8751f
Script para o FastAPI
Browse files
main.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
"""
|
3 |
+
Data Scientist.: Dr. Eddy Giusepe Chirinos Isidro
|
4 |
+
|
5 |
+
Executar este Script
|
6 |
+
====================
|
7 |
+
O seguinte comando iniciará o servidor:
|
8 |
+
|
9 |
+
$ fastapi dev main.py
|
10 |
+
"""
|
11 |
+
from fastapi import FastAPI
|
12 |
+
|
13 |
+
app = FastAPI()
|
14 |
+
|
15 |
+
|
16 |
+
@app.get("/")
|
17 |
+
async def root():
|
18 |
+
return {"message": "Whatchamacallit"}
|