Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -44,14 +44,13 @@ def query_api(image_bytes, prompt, seed, guidance_scale, steps, progress_callbac
|
|
44 |
# Convert image to base64
|
45 |
image_base64 = base64.b64encode(image_bytes).decode('utf-8')
|
46 |
|
|
|
47 |
payload = {
|
|
|
48 |
"inputs": image_base64,
|
49 |
-
"
|
50 |
-
|
51 |
-
|
52 |
-
"guidance_scale": guidance_scale,
|
53 |
-
"num_inference_steps": steps
|
54 |
-
}
|
55 |
}
|
56 |
|
57 |
if progress_callback:
|
|
|
44 |
# Convert image to base64
|
45 |
image_base64 = base64.b64encode(image_bytes).decode('utf-8')
|
46 |
|
47 |
+
# Fixed payload structure - prompt should be at the top level
|
48 |
payload = {
|
49 |
+
"prompt": prompt,
|
50 |
"inputs": image_base64,
|
51 |
+
"seed": seed,
|
52 |
+
"guidance_scale": guidance_scale,
|
53 |
+
"num_inference_steps": steps
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
if progress_callback:
|