Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,8 @@ def get_theme() -> gr.Theme:
|
|
| 100 |
)
|
| 101 |
|
| 102 |
css='''
|
| 103 |
-
#
|
|
|
|
| 104 |
'''
|
| 105 |
|
| 106 |
with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
@@ -147,7 +148,7 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
| 147 |
target_image = gr.Image(type="filepath", label="TARGET IMAGE")
|
| 148 |
image_button = gr.Button("START")
|
| 149 |
clear_button = gr.ClearButton(value="CLEAR")
|
| 150 |
-
image_output = gr.Image(elem_id="
|
| 151 |
clear_button.add(image_output)
|
| 152 |
|
| 153 |
image_button.click(
|
|
@@ -170,7 +171,7 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
| 170 |
keep_temp = gr.Checkbox(label="KEEP TEMP")
|
| 171 |
video_button = gr.Button("START")
|
| 172 |
clear_video_button = gr.ClearButton(value="CLEAR")
|
| 173 |
-
video_output = gr.Video(elem_id="
|
| 174 |
clear_video_button.add(video_output)
|
| 175 |
video_button.click(
|
| 176 |
run,
|
|
|
|
| 100 |
)
|
| 101 |
|
| 102 |
css='''
|
| 103 |
+
#image_output_i{max-height:300px}
|
| 104 |
+
#image_output_v{max-height:300px}
|
| 105 |
'''
|
| 106 |
|
| 107 |
with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
|
|
| 148 |
target_image = gr.Image(type="filepath", label="TARGET IMAGE")
|
| 149 |
image_button = gr.Button("START")
|
| 150 |
clear_button = gr.ClearButton(value="CLEAR")
|
| 151 |
+
image_output = gr.Image(elem_id="image_output_i", label="OUTPUT")
|
| 152 |
clear_button.add(image_output)
|
| 153 |
|
| 154 |
image_button.click(
|
|
|
|
| 171 |
keep_temp = gr.Checkbox(label="KEEP TEMP")
|
| 172 |
video_button = gr.Button("START")
|
| 173 |
clear_video_button = gr.ClearButton(value="CLEAR")
|
| 174 |
+
video_output = gr.Video(elem_id="image_output_v", label="OUTPUT")
|
| 175 |
clear_video_button.add(video_output)
|
| 176 |
video_button.click(
|
| 177 |
run,
|