Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ 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:
|
@@ -108,8 +108,8 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
108 |
gr.HTML('<center><a href="https://codegenius.me">DeepFakeAI 1.0.1</a></center>')
|
109 |
|
110 |
with gr.Box():
|
111 |
-
with gr.Row():
|
112 |
-
with gr.Column():
|
113 |
frame_processor_checkbox = gr.CheckboxGroup(
|
114 |
choices = ['face_swapper', 'face_enhancer', 'frame_enhancer'],
|
115 |
label = 'FRAME PROCESSORS',
|
@@ -145,7 +145,7 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
145 |
clear_button = gr.ClearButton(value="CLEAR")
|
146 |
with gr.Row():
|
147 |
with gr.Column():
|
148 |
-
image_output = gr.Image(elem_id="
|
149 |
clear_button.add(image_output)
|
150 |
|
151 |
image_button.click(
|
@@ -168,7 +168,7 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
168 |
keep_temp = gr.Checkbox(label="KEEP TEMP")
|
169 |
video_button = gr.Button("START")
|
170 |
clear_video_button = gr.ClearButton(value="CLEAR")
|
171 |
-
video_output = gr.Video(elem_id="
|
172 |
clear_video_button.add(video_output)
|
173 |
video_button.click(
|
174 |
run,
|
|
|
100 |
)
|
101 |
|
102 |
css='''
|
103 |
+
#image_output{max-height:300px}
|
104 |
'''
|
105 |
|
106 |
with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
|
|
|
108 |
gr.HTML('<center><a href="https://codegenius.me">DeepFakeAI 1.0.1</a></center>')
|
109 |
|
110 |
with gr.Box():
|
111 |
+
with gr.Row(scale=5):
|
112 |
+
with gr.Column(scale=2):
|
113 |
frame_processor_checkbox = gr.CheckboxGroup(
|
114 |
choices = ['face_swapper', 'face_enhancer', 'frame_enhancer'],
|
115 |
label = 'FRAME PROCESSORS',
|
|
|
145 |
clear_button = gr.ClearButton(value="CLEAR")
|
146 |
with gr.Row():
|
147 |
with gr.Column():
|
148 |
+
image_output = gr.Image(elem_id="image_output", label="OUTPUT")
|
149 |
clear_button.add(image_output)
|
150 |
|
151 |
image_button.click(
|
|
|
168 |
keep_temp = gr.Checkbox(label="KEEP TEMP")
|
169 |
video_button = gr.Button("START")
|
170 |
clear_video_button = gr.ClearButton(value="CLEAR")
|
171 |
+
video_output = gr.Video(elem_id="image_output", label="OUTPUT")
|
172 |
clear_video_button.add(video_output)
|
173 |
video_button.click(
|
174 |
run,
|