You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run "describe" feature in this project but it could not work with curl command as provided and also provided API url. Is there any one who can get results using upload and describe pairs. What is the problem? That did not return the describe results.
On the other hand, I tried it in provided API url, could not work. Tried the describe method on the discord server directly, that works.
复现方式
starting server.py and task_bot.py in two terminal. On the third one; first writing
After that; servery.py terminal returns a message like binaries or somethingl ike that of the provided image;
\xd3\xbe\xb7\x87O\xd12\xdc\x98\xda\xe9~]M\xa4\xaa\xf6\xe6\xad\xda\xef\x9d\xff\xf67\xf2\xe4,f\tYL]\xecW\xc3\xc3(\xaeoo\x1e\xb6'\xc7\xe2pTD\xd3\xe0iR\x1f\xfb\x93\xc5\xe5f1\xf6K?\xf7\xd5l6v\x1b\x8a\x02c\x1e\xce\xcf\xa7\x07uh< \xd7\x90\xc1{E\x8aZ<uB"d\nfhH\x86\xaaf1s\x1c}\xc5\x15T\t\x18\xd0\x1b\x08\x03:\xe0`\xda0\x04\xc5\xef\xae"\x80\x07\x1f\x00B=\xdfs*\x14\xbb8\xe4\xb4\xce\xe0\xdb\xf9\xf1I\x0b\x94!\xa7~-}\x84>B2\xd8\x9f\xef\xdd\xbf\xe7\xf6g\x976\x10d\xaf\x98\xa1\x82\xdd\xb4\xa5\xad\x1e\xa10\
Then run this on the upload curl command terminal;
问题简述
Trying to run "describe" feature in this project but it could not work with curl command as provided and also provided API url. Is there any one who can get results using upload and describe pairs. What is the problem? That did not return the describe results.
On the other hand, I tried it in provided API url, could not work. Tried the describe method on the discord server directly, that works.
复现方式
starting server.py and task_bot.py in two terminal. On the third one; first writing
tevfikaktay@Tevfik-MacBook-Pro midjourney-api % curl -X 'POST'
'http://127.0.0.1:8062/v1/api/trigger/upload' \ -H 'accept: application/json'
-H 'Content-Type: multipart/form-data'
-F 'file=@/Users/tevfikaktay/Desktop/Projects/midjourney-api/midjourney-api/results/20241018165753/char_sub_img_4.png;type=image/jpeg'
That returns;
{"message":"success","upload_filename":"d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg","upload_url":"https://discord-attachments-uploads-prd.storage.googleapis.com/d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg?upload_id=AHmUCY09mYwcaY8kZXHeOdp5Sdi2xxKgdl9_YCd_ptiZBNuv-T9hEKIcSwk7ri09b42K-oiWcl2MrhF8EV1fhZK_-gU9AUs6D605zCmk8rHjaJUt1Q","trigger_id":"917224701"}curl: (3) URL using bad/illegal format or missing URL
After that; servery.py terminal returns a message like binaries or somethingl ike that of the provided image;
\xd3\xbe\xb7\x87O\xd12\xdc\x98\xda\xe9~]M\xa4\xaa\xf6\xe6\xad\xda\xef\x9d\xff\xf67\xf2\xe4,f\tYL]\xecW\xc3\xc3(\xaeoo\x1e\xb6'\xc7\xe2pTD\xd3\xe0iR\x1f\xfb\x93\xc5\xe5f1\xf6K?\xf7\xd5l6v\x1b\x8a\x02c\x1e\xce\xcf\xa7\x07uh< \xd7\x90\xc1{E\x8aZ<uB"d\nfhH\x86\xaaf1s\x1c}\xc5\x15T\t\x18\xd0\x1b\x08\x03:\xe0`\xda0\x04\xc5\xef\xae"\x80\x07\x1f\x00B=\xdfs*\x14\xbb8\xe4\xb4\xce\xe0\xdb\xf9\xf1I\x0b\x94!\xa7~-}\x84>B2\xd8\x9f\xef\xdd\xbf\xe7\xf6g\x976\x10d\xaf\x98\xa1\x82\xdd\xb4\xa5\xad\x1e\xa10\
Then run this on the upload curl command terminal;
(base) tevfikaktay@Tevfik-MacBook-Pro midjourney-api % curl -X 'POST'
'http://127.0.0.1:8062/v1/api/trigger/describe'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"upload_filename": "d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg",
"trigger_id": "917224701"
}'
After that it returns below message in the same terminal,
{"message":"success","trigger_id":"917224701","trigger_type":"describe"}
on the server.py terminal side, it return
Fetch: https://discord.com/api/v9/interactions, {'data': '{"type": 2, "application_id": "936929561302675456", "guild_id": "1296864208411168778", "channel_id": "(my channel id)", "session_id": "cb06f61453064c0983f2adae2a88c223", "data": {"version": "1237876415471554623", "id": "1092492867185950852", "name": "describe", "type": 1, "options": [{"type": 11, "name": "image", "value": 0}], "attachments": [{"id": "0", "filename": "917224701.jpg", "uploaded_filename": "d9e87992-eb55-46be-a131-f5bad43e05e4/917224701.jpg"}]}}', 'proxy': ''}
环境信息
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
python --version
)额外信息
No response
一点点的自我检查
The text was updated successfully, but these errors were encountered: