Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
asv7j
/
tran
like
0
Runtime error
App
Files
Files
Community
main
tran
/
app.py
asv7j
Update app.py
8d628f4
verified
5 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
168 Bytes
from
fastapi
import
FastAPI
import
subprocess
app = FastAPI()
subprocess.Popen([
'python'
,
'main.py'
])
@app.get(
"/"
)
def
greet_json
():
return
{
"Hello"
:
"World!"
}