Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
thesunshine36
/
docker_fastapi
like
0
Sleeping
App
Files
Files
Community
thesunshine36
commited on
Oct 12, 2023
Commit
21fd804
•
1 Parent(s):
bf9a705
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+1
-1
app.py
CHANGED
Viewed
@@ -9,7 +9,7 @@ app = FastAPI()
9
10
11
# FastAPI
12
-
@app.
get
("/")
13
def return_api(text: str):
14
# Get the caption
15
9
10
11
# FastAPI
12
+
@app.
post
("/")
13
def return_api(text: str):
14
# Get the caption
15