qwen2.5-VL-api / model.py
danilohssantana's picture
adding docker configuration
3a8bfcd
raw
history blame
431 Bytes
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)