SolomonHsu commited on
Commit
a7d51f9
·
verified ·
1 Parent(s): 2c42053

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI(title="Deploying FastAPI Apps on Huggingface")
4
+
5
+ @app.get("/", tags=["Home"])
6
+ def api_home():
7
+ return {'message': 'Welcome!'}