Spaces:
Running
on
Zero
Running
on
Zero
- Untitled-1.ini +0 -0
- app.py +6 -2
Untitled-1.ini
ADDED
The diff for this file is too large to render.
See raw diff
|
|
app.py
CHANGED
@@ -48,6 +48,10 @@ def mix_images(sotai_image_data, sketch_image_data, opacity1, opacity2):
|
|
48 |
|
49 |
return mixed_image
|
50 |
|
|
|
|
|
|
|
|
|
51 |
with gr.Blocks() as demo:
|
52 |
form_visible_flag = gr.Textbox(value="false", elem_id="form_flag", visible=False)
|
53 |
# title
|
@@ -200,8 +204,8 @@ with gr.Blocks() as demo:
|
|
200 |
)
|
201 |
|
202 |
send_feedback_button.click(
|
203 |
-
|
204 |
-
inputs=[
|
205 |
outputs=[feed_back_result],
|
206 |
)
|
207 |
|
|
|
48 |
|
49 |
return mixed_image
|
50 |
|
51 |
+
def send_mixed_feedback(sotai_image_data, sketch_image_data, filename):
|
52 |
+
mixed_image = mix_images(sotai_image_data, sketch_image_data, 0.5, 0.5)
|
53 |
+
return send_feedback(mixed_image, filename)
|
54 |
+
|
55 |
with gr.Blocks() as demo:
|
56 |
form_visible_flag = gr.Textbox(value="false", elem_id="form_flag", visible=False)
|
57 |
# title
|
|
|
204 |
)
|
205 |
|
206 |
send_feedback_button.click(
|
207 |
+
send_mixed_feedback,
|
208 |
+
inputs=[sotai_image_data, sketch_image_data, send_filename],
|
209 |
outputs=[feed_back_result],
|
210 |
)
|
211 |
|