Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
ka1kuk/linp
ka1kuk
/
ChemApi
like
0
Sleeping
App
Files
Files
Community
454db78
ChemApi
/
main.py
ka1kuk
Update main.py
454db78
over 1 year ago
raw
Copy download link
history
blame
194 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
@app.get(
"/"
)
def
read_root
():
return
{
"Hello"
:
"World!"
}
@app.get(
"/linlada/<prompt>"
)
def
read_root
(
prompt
):
return
{
"Hello"
: prompt}