Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
ruslanmv/Image-To-Text
Nymbo
/
caption-max
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
66f8fc1
caption-max
/
main.py
sayakpaul
HF Staff
add: initial files.
66f8fc1
over 2 years ago
raw
Copy download link
history
blame
Wrap lines
234 Bytes
from
fastapi
import
FastAPI
import
gradio
as
gr
app = FastAPI()
def
greet
(
name
):
return
"Hello "
+ name +
"!"
@app.get(
"/"
)
def
read_root
():
demo = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
demo.launch()