Spaces:
Sleeping
Sleeping
Commit ·
624d066
1
Parent(s): 259ab86
Inicializar backend FastAPI con Dockerfile y hello world
Browse files- Dockerfile +0 -0
- app.py +7 -0
- requirments.txt +7 -0
Dockerfile
ADDED
|
File without changes
|
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def home():
|
| 7 |
+
return {"message": "✅ Hola Martina, el backend está funcionando correctamente!"}
|
requirments.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi
|
| 2 |
+
uvicorn
|
| 3 |
+
torch
|
| 4 |
+
joblib
|
| 5 |
+
pandas
|
| 6 |
+
numpy
|
| 7 |
+
scikit-learn
|