Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,9 @@ def decode_image(img_obj):
|
|
| 36 |
img = Image.open(img_obj).convert("RGB")
|
| 37 |
return img
|
| 38 |
|
|
|
|
|
|
|
|
|
|
| 39 |
def edict(x, source_text, edit_text,
|
| 40 |
edit_strength, guidance_scale,
|
| 41 |
steps=50, mix_weight=0.93, ):
|
|
@@ -132,9 +135,9 @@ fn=edict, inputs=["image",
|
|
| 132 |
gr.Slider(0, 10, value=3, step=0.5),
|
| 133 |
],
|
| 134 |
"""
|
| 135 |
-
iface = gr.Interface(fn=
|
| 136 |
inputs=[
|
| 137 |
-
gr.Slider(0, 10, value=3, step=0.5)
|
| 138 |
],
|
| 139 |
# examples = examples,
|
| 140 |
outputs="str",
|
|
|
|
| 36 |
img = Image.open(img_obj).convert("RGB")
|
| 37 |
return img
|
| 38 |
|
| 39 |
+
def f(x):
|
| 40 |
+
return x
|
| 41 |
+
|
| 42 |
def edict(x, source_text, edit_text,
|
| 43 |
edit_strength, guidance_scale,
|
| 44 |
steps=50, mix_weight=0.93, ):
|
|
|
|
| 135 |
gr.Slider(0, 10, value=3, step=0.5),
|
| 136 |
],
|
| 137 |
"""
|
| 138 |
+
iface = gr.Interface(fn=f,
|
| 139 |
inputs=[
|
| 140 |
+
gr.Slider(0, 10, value=3, step=0.5)
|
| 141 |
],
|
| 142 |
# examples = examples,
|
| 143 |
outputs="str",
|