first cimmit
This commit is contained in:
13
app/server/generate_image/flux2_klein/client.py
Normal file
13
app/server/generate_image/flux2_klein/client.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# This file is auto-generated by LitServe.
|
||||
# Disable auto-generation by setting `generate_client_file=False` in `LitServer.run()`.
|
||||
|
||||
import requests
|
||||
|
||||
request_data = {
|
||||
"prompt": "Create realistic studio photo with real people model standing and wearing this garment, in white studio, Keep original model if present, or generate appropriate model, Standing pose, facing camera.",
|
||||
"image_path":"aida-results/result_38151e0a-f83b-11f0-89f6-0242ac130002.png",
|
||||
"infer_step":4,
|
||||
"tasks_id":"123456-123"
|
||||
}
|
||||
response = requests.post("http://127.0.0.1:8012//api/v1/to_product", json=request_data)
|
||||
print(f"Status: {response.status_code}\nResponse:\n {response.text}")
|
||||
Reference in New Issue
Block a user