Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,10 @@ def predict():
|
|
41 |
|
42 |
b64meta, b64_data = base64Image.split(',')
|
43 |
|
|
|
|
|
44 |
result = client.predict(
|
45 |
-
|
46 |
)
|
47 |
|
48 |
return b64meta + ',' + encode_image_to_base64(result)
|
|
|
41 |
|
42 |
b64meta, b64_data = base64Image.split(',')
|
43 |
|
44 |
+
image_path = save_base64_image(b64_data)
|
45 |
+
|
46 |
result = client.predict(
|
47 |
+
image_path, prompt, steps, seed, fn_index=0
|
48 |
)
|
49 |
|
50 |
return b64meta + ',' + encode_image_to_base64(result)
|