Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
hoh2000
/
Text_to_image_test
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
0e4ed3d
Text_to_image_test
/
app.py
hoh2000
Update app.py
0e4ed3d
verified
4 months ago
raw
Copy download link
history
blame
Safe
208 Bytes
import
requests
response = requests.post(
"https://cloudqi-cqi-text-to-image-pt-v0.hf.space/run/predict"
,
json={
"data"
: [
"A cat in space with sunglasses"
]},
)
image_url = response.json()[
"data"
][
0
]