Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .python-version +1 -0
- app/main.py +3 -1
- main.py +6 -0
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.12
|
app/main.py
CHANGED
|
@@ -64,7 +64,9 @@ app = FastAPI(title="API Futurisys")
|
|
| 64 |
def read_root():
|
| 65 |
return {
|
| 66 |
"message": "Bienvenue dans l'API Futurisys",
|
| 67 |
-
"documentation": "/docs"
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
@app.get("/threshold")
|
|
|
|
| 64 |
def read_root():
|
| 65 |
return {
|
| 66 |
"message": "Bienvenue dans l'API Futurisys",
|
| 67 |
+
"documentation": "/docs",
|
| 68 |
+
"info": "Accedez au Swagger : https://huggingface.co/spaces/PCelia/futurisys-api"
|
| 69 |
+
|
| 70 |
}
|
| 71 |
|
| 72 |
@app.get("/threshold")
|
main.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def main():
|
| 2 |
+
print("Hello from ml-futurisys!")
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
main()
|