Spaces:
Running
Running
File size: 431 Bytes
3a8bfcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import requests
url = "https://<uname>-<spacename>.hf.space/predict"
# Define the parameters
params = {
"image_url": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
"prompt": "describe",
}
# Send the GET request
response = requests.get(url, params=params)
if response.status_code == 200:
print("Response:", response.json())
else:
print("Error:", response.status_code, response.text)
|