navpan2 commited on
Commit
0fa8907
·
verified ·
1 Parent(s): a7217b8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def root():
7
+ return {"message": "Hello from Hugging Face Docker!"}
8
+
9
+ @app.get("/replacement")
10
+ def get_replacement():
11
+ return {"text": "This is from the server!"}