mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-18 07:41:03 +00:00
fix filename issue
This commit is contained in:
@@ -3,7 +3,8 @@ import json
|
||||
import requests
|
||||
|
||||
url = 'http://localhost:8000/preview/'
|
||||
payload = {"style": "comic_book", "positive_prompt": "test pos in", "negative_prompt": "test neg in"}
|
||||
# url = "http://207.189.112.61:31605/preview"
|
||||
payload = {"style": "paper_origami", "positive_prompt": "test pos in", "negative_prompt": "test neg in"}
|
||||
files = {'input_file': open('test_image.jpg', 'rb')}
|
||||
|
||||
response = requests.post(url, data={'request': json.dumps(payload)}, files=files) # Use 'request': payload directly
|
||||
|
||||
Reference in New Issue
Block a user