Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -135,8 +135,10 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
135 |
)
|
136 |
unique_id = gr.Textbox(value=str(uuid.uuid4()), visible=False)
|
137 |
with gr.Tab("Image: "):
|
138 |
-
|
139 |
-
|
|
|
|
|
140 |
image_button = gr.Button("START")
|
141 |
clear_button = gr.ClearButton(value="CLEAR")
|
142 |
image_output = gr.Image(elem_id="image_output", label="OUTPUT")
|
@@ -147,8 +149,7 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
147 |
inputs=[source_image, target_image, unique_id, frame_processor_checkbox, face_analyser_direction_dropdown, face_analyser_age_dropdown, face_analyser_gender_dropdown],
|
148 |
outputs=image_output
|
149 |
)
|
150 |
-
|
151 |
-
|
152 |
clear_button.click(fn=clear_output, inputs=unique_id)
|
153 |
|
154 |
with gr.Tab("Video: "):
|
|
|
135 |
)
|
136 |
unique_id = gr.Textbox(value=str(uuid.uuid4()), visible=False)
|
137 |
with gr.Tab("Image: "):
|
138 |
+
with gr.Column():
|
139 |
+
source_image = gr.Image(type="filepath", label="SOURCE IMAGE")
|
140 |
+
with gr.Column():
|
141 |
+
target_image = gr.Image(type="filepath", label="TARGET IMAGE")
|
142 |
image_button = gr.Button("START")
|
143 |
clear_button = gr.ClearButton(value="CLEAR")
|
144 |
image_output = gr.Image(elem_id="image_output", label="OUTPUT")
|
|
|
149 |
inputs=[source_image, target_image, unique_id, frame_processor_checkbox, face_analyser_direction_dropdown, face_analyser_age_dropdown, face_analyser_gender_dropdown],
|
150 |
outputs=image_output
|
151 |
)
|
152 |
+
|
|
|
153 |
clear_button.click(fn=clear_output, inputs=unique_id)
|
154 |
|
155 |
with gr.Tab("Video: "):
|