Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,8 +122,18 @@ A returned black image means that the [Safety Checker](https://huggingface.co/Co
|
|
122 |
the huggingface logo or variations), but we need to keep it in for obvious reasons.
|
123 |
"""
|
124 |
# article = gr.Markdown(description)
|
125 |
-
|
126 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
examples = examples,
|
128 |
outputs="image",
|
129 |
description=description,
|
|
|
122 |
the huggingface logo or variations), but we need to keep it in for obvious reasons.
|
123 |
"""
|
124 |
# article = gr.Markdown(description)
|
125 |
+
"""
|
126 |
+
fn=edict, inputs=["image",
|
127 |
+
gr.Textbox(label="Original Description"),
|
128 |
+
gr.Textbox(label="Edit Description"),
|
129 |
+
# 50, # gr.Slider(5, 50, value=20, step=1),
|
130 |
+
# 0.93, # gr.Slider(0.5, 1, value=0.7, step=0.05),
|
131 |
+
gr.Slider(0.0, 1, value=0.8, step=0.05),
|
132 |
+
gr.Slider(0, 10, value=3, step=0.5),
|
133 |
+
],
|
134 |
+
"""
|
135 |
+
iface = gr.Interface(fn=lambda x: x,
|
136 |
+
inputs=["Image"]
|
137 |
examples = examples,
|
138 |
outputs="image",
|
139 |
description=description,
|