K00B404 commited on
Commit
b86ea9d
·
verified ·
1 Parent(s): 30a3577

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -7,7 +7,7 @@ import random
7
  import os
8
 
9
  import spaces
10
-
11
  class ImageMorpher:
12
  def __init__(self, num_frames=30, fps=10):
13
  self.num_frames = num_frames
@@ -64,7 +64,7 @@ def remove_back_to_files():
64
 
65
  # Create an instance of the ImageMorpher class
66
  morpher = ImageMorpher()
67
-
68
  # Define the Gradio interface
69
  ### Description and style
70
  logo = r"""
@@ -87,6 +87,7 @@ The "Output Video" block will display the morphed video, which you can watch and
87
  css = '''
88
  .gradio-container {width: 85% !important}
89
  '''
 
90
  with gr.Blocks(css=css) as demo:
91
  gr.Markdown(logo)
92
  gr.Markdown(title)
@@ -114,7 +115,7 @@ with gr.Blocks(css=css) as demo:
114
  files.upload(fn=swap_to_gallery, inputs=files, outputs=[files, clear_button, files])
115
  remove_and_reupload.click(fn=remove_back_to_files, outputs=[files, clear_button, files])
116
  demo.launch()
117
-
118
 
119
  import app1
120
  '''
 
7
  import os
8
 
9
  import spaces
10
+ '''
11
  class ImageMorpher:
12
  def __init__(self, num_frames=30, fps=10):
13
  self.num_frames = num_frames
 
64
 
65
  # Create an instance of the ImageMorpher class
66
  morpher = ImageMorpher()
67
+ """
68
  # Define the Gradio interface
69
  ### Description and style
70
  logo = r"""
 
87
  css = '''
88
  .gradio-container {width: 85% !important}
89
  '''
90
+ """
91
  with gr.Blocks(css=css) as demo:
92
  gr.Markdown(logo)
93
  gr.Markdown(title)
 
115
  files.upload(fn=swap_to_gallery, inputs=files, outputs=[files, clear_button, files])
116
  remove_and_reupload.click(fn=remove_back_to_files, outputs=[files, clear_button, files])
117
  demo.launch()
118
+ """
119
 
120
  import app1
121
  '''