Krokodilpirat commited on
Commit
9c76f77
·
verified ·
1 Parent(s): e50f946

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -122,8 +122,8 @@ def construct_demo():
122
 
123
  with gr.Row(equal_height=True):
124
  with gr.Column(scale=1):
125
- # Hier wird source="upload" genutzt type wird weggelassen
126
- input_video = gr.Video(label="Input Video", source="upload")
127
  with gr.Column(scale=2):
128
  with gr.Row(equal_height=True):
129
  processed_video = gr.Video(label="Preprocessed Video", interactive=False, autoplay=True, loop=True, show_share_button=True, scale=5)
@@ -162,4 +162,4 @@ def construct_demo():
162
  if __name__ == "__main__":
163
  demo = construct_demo()
164
  demo.queue() # Enable asynchronous processing
165
- demo.launch(share=True)
 
122
 
123
  with gr.Row(equal_height=True):
124
  with gr.Column(scale=1):
125
+ # Hier wird der Parameter "source" entfernt, da er in der aktuellen API nicht mehr unterstützt wird.
126
+ input_video = gr.Video(label="Input Video")
127
  with gr.Column(scale=2):
128
  with gr.Row(equal_height=True):
129
  processed_video = gr.Video(label="Preprocessed Video", interactive=False, autoplay=True, loop=True, show_share_button=True, scale=5)
 
162
  if __name__ == "__main__":
163
  demo = construct_demo()
164
  demo.queue() # Enable asynchronous processing
165
+ demo.launch(share=True)