R1000 commited on
Commit
1a1ad47
·
verified ·
1 Parent(s): c033bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -10
app.py CHANGED
@@ -98,10 +98,6 @@ def get_theme() -> gr.Theme:
98
  block_label_text_size = '*text_sm',
99
  block_title_text_size = '*text_sm'
100
  )
101
-
102
- css='''
103
- #image_output{max-height:500px}
104
- '''
105
 
106
  with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
107
  with gr.Box():
@@ -142,13 +138,12 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
142
  with gr.Column():
143
  target_image = gr.Image(type="filepath", label="TARGET IMAGE")
144
  with gr.Row():
145
- with gr.Column():
146
- image_button = gr.Button("START")
147
  with gr.Column():
148
  clear_button = gr.ClearButton(value="CLEAR")
149
- with gr.Row():
150
  with gr.Column():
151
- image_output = gr.Image(elem_id="image_output", label="OUTPUT", height=500)
 
 
152
  clear_button.add(image_output)
153
 
154
  image_button.click(
@@ -169,9 +164,9 @@ with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
169
  skip_audio = gr.Checkbox(label="SKIP AUDIO")
170
  keep_fps = gr.Checkbox(label="KEEP FPS")
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(label="OUTPUT")
 
175
  clear_video_button.add(video_output)
176
  video_button.click(
177
  run,
 
98
  block_label_text_size = '*text_sm',
99
  block_title_text_size = '*text_sm'
100
  )
 
 
 
 
101
 
102
  with gr.Blocks(theme=get_theme(), title="DeepFakeAI 1.0.0") as ui:
103
  with gr.Box():
 
138
  with gr.Column():
139
  target_image = gr.Image(type="filepath", label="TARGET IMAGE")
140
  with gr.Row():
 
 
141
  with gr.Column():
142
  clear_button = gr.ClearButton(value="CLEAR")
 
143
  with gr.Column():
144
+ image_button = gr.Button("START")
145
+ with gr.Row():
146
+ image_output = gr.Image(label="OUTPUT", height=500)
147
  clear_button.add(image_output)
148
 
149
  image_button.click(
 
164
  skip_audio = gr.Checkbox(label="SKIP AUDIO")
165
  keep_fps = gr.Checkbox(label="KEEP FPS")
166
  keep_temp = gr.Checkbox(label="KEEP TEMP")
 
167
  clear_video_button = gr.ClearButton(value="CLEAR")
168
+ video_button = gr.Button("START")
169
+ video_output = gr.Video(label="OUTPUT", height=500)
170
  clear_video_button.add(video_output)
171
  video_button.click(
172
  run,