DSDUDEd commited on
Commit
ae84db8
·
verified ·
1 Parent(s): d3ce050

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ async def root():
7
+ return {"message": "Hello Hugging Face Docker!"}
8
+
9
+ if __name__ == "__main__":
10
+ import uvicorn
11
+ # Run on 0.0.0.0:7860 for Hugging Face Spaces
12
+ uvicorn.run(app, host="0.0.0.0", port=7860)