mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-17 00:23:14 +00:00
fix CORS, allow images, override mapping name
This commit is contained in:
@@ -4,7 +4,7 @@ import requests
|
||||
|
||||
url = 'http://localhost:8000/preview/'
|
||||
payload = {"style": "comic_book", "positive_prompt": "test pos in", "negative_prompt": "test neg in"}
|
||||
files = {'video': open('miku1f.mp4', 'rb')}
|
||||
files = {'input_file': open('test_image.jpg', 'rb')}
|
||||
|
||||
response = requests.post(url, data={'request': json.dumps(payload)}, files=files) # Use 'request': payload directly
|
||||
if response.status_code == 200:
|
||||
|
||||
Reference in New Issue
Block a user