Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Arafath10
/
api
like
0
Runtime error
App
Files
Files
Community
351a798
api
/
app.py
Arafath10
Update app.py
351a798
over 1 year ago
raw
Copy download link
history
blame
Safe
268 Bytes
import
gradio
as
gr
from
fastapi
import
FastAPI
app = FastAPI()
@app.post(
"/chatbot/{keyword}"
)
async
def
video
(
keyword
):
name = keyword.lower()
return
name
import
subprocess
subprocess.run(
"uvicorn app:app --host 0.0.0.0 --port 7820"
, shell=
True
)