imseldrith commited on
Commit
a95c80f
1 Parent(s): 53606e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -30
app.py CHANGED
@@ -1,6 +1,5 @@
1
 
2
  import gradio as gr
3
- import gradio
4
  import subprocess as sp
5
  import os
6
  import uuid
@@ -154,35 +153,17 @@ def get_css() -> str:
154
  }
155
  """
156
  return fixes_css + overrides_css
157
- htmlcb= """
158
- <div style="color:#FF0000; background-color:#000; font-size:35px; font-weight:bold; text-align:center;">
159
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
160
- <a href="https://codegenius.me" style="color:#FF0000; -webkit-transition: color 200ms ease-in-out; transition: color 200ms ease-in-out; text-decoration: none;">DeepFakeAI 2.0.1</a>
161
- </div>
162
- <div class="social-icons" style="padding:30px; background-color:#000; text-align:center;">
163
- <a href="https://www.facebook.com/octaeldrith" title="facebook" style="color:#FF0000; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
164
- <i class="fa fa-facebook-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out;"></i>
165
- </a>
166
- <a href="https://twitter.com/ims_eldrith" title="twitter" style="color:#FF0000; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
167
- <i class="fa fa-twitter-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out;"></i>
168
- </a>
169
- <a href="https://instagram.com/ims_eldrith" title="instagram" style="color:#FF0000; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
170
- <i class="fa fa-instagram" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out;"></i>
171
- </a>
172
- <a href="https://linkedin.com/in/ashiq-hussain" title="linkedin" style="color:#FF0000; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
173
- <i class="fa fa-linkedin-square" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out;"></i>
174
- </a>
175
- <a href="https://www.pinterest.com/ims_eldrith" title="pinterest" style="color:#FF0000; line-height:30px; font-size:30px; margin:0 5px; text-decoration:none;">
176
- <i class="fa fa-pinterest-p" aria-hidden="true" style="line-height:30px; font-size:30px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out;"></i>
177
- </a>
178
- </div>
179
- """
180
 
181
- def get_theme() -> gradio.Theme:
182
- return gradio.themes.Base(
183
- primary_hue = gradio.themes.colors.red,
184
- secondary_hue = gradio.themes.colors.neutral,
185
- font = gradio.themes.GoogleFont('Open Sans')
 
 
 
 
 
186
  ).set(
187
  background_fill_primary = '*neutral_100',
188
  block_background_fill = 'white',
@@ -237,7 +218,7 @@ def get_theme() -> gradio.Theme:
237
 
238
  with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui:
239
  with gr.Row():
240
- gr.HTML(htmlcb)
241
 
242
  with gr.Row():
243
  with gr.Column(scale=3):
@@ -335,5 +316,7 @@ with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui
335
  outputs=video_output
336
  )
337
  clear_video_button.click(fn=clear_output, inputs=unique_id)
 
 
338
 
339
  ui.launch(debug=True)
 
1
 
2
  import gradio as gr
 
3
  import subprocess as sp
4
  import os
5
  import uuid
 
153
  }
154
  """
155
  return fixes_css + overrides_css
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
157
+ def get_html():
158
+ with open("DeepFakeAI.html", "r") as f:
159
+ html = f.read()
160
+ return html
161
+
162
+ def get_theme() -> gr.Theme:
163
+ return gr.themes.Base(
164
+ primary_hue = gr.themes.colors.red,
165
+ secondary_hue = gr.themes.colors.neutral,
166
+ font = gr.themes.GoogleFont('Open Sans')
167
  ).set(
168
  background_fill_primary = '*neutral_100',
169
  block_background_fill = 'white',
 
218
 
219
  with gr.Blocks(theme=get_theme(), css=get_css(), title="DeepFakeAI 2.0.1") as ui:
220
  with gr.Row():
221
+ gr.HTML(get_html())
222
 
223
  with gr.Row():
224
  with gr.Column(scale=3):
 
316
  outputs=video_output
317
  )
318
  clear_video_button.click(fn=clear_output, inputs=unique_id)
319
+ with gr.Row():
320
+ gr.HTML("<center>Made with ❤️ by <a href="https://codegenius.me" style="font-weight: bold; font-style: italic; color: red;">Ashiq Hussain</a></center>")
321
 
322
  ui.launch(debug=True)