yixin1121 commited on
Commit
767c9c5
·
verified ·
1 Parent(s): 3d99af0

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. VideoLoader.py +0 -1
  2. app.py +2 -2
VideoLoader.py CHANGED
@@ -92,7 +92,6 @@ class VideoLoader:
92
  }
93
  height, width = self._get_output_dim(h, w)
94
  # resize ##
95
- print(h, w, fr)
96
  try:
97
  cmd = (
98
  ffmpeg.input(video_path)
 
92
  }
93
  height, width = self._get_output_dim(h, w)
94
  # resize ##
 
95
  try:
96
  cmd = (
97
  ffmpeg.input(video_path)
app.py CHANGED
@@ -37,7 +37,7 @@ def generate(video, textbox_in, candbox_in):
37
  video = video if video else "none"
38
 
39
  text_en_out = handler.generate(textbox_in, eval(candbox_in), video)
40
-
41
  textbox_out = text_en_out
42
  #torch.cuda.empty_cache()
43
  return textbox_out
@@ -98,7 +98,7 @@ with gr.Blocks(title='T-MoENet', theme=gr.themes.Default(), css=block_css) as de
98
  with gr.Row():
99
  with gr.Column(scale=4):
100
  question_box.render()
101
- with gr.Column(scale=4):
102
  candidates_box.render()
103
  with gr.Column(scale=1, min_width=50):
104
  submit_btn = gr.Button(
 
37
  video = video if video else "none"
38
 
39
  text_en_out = handler.generate(textbox_in, eval(candbox_in), video)
40
+ print(text_en_out)
41
  textbox_out = text_en_out
42
  #torch.cuda.empty_cache()
43
  return textbox_out
 
98
  with gr.Row():
99
  with gr.Column(scale=4):
100
  question_box.render()
101
+ with gr.Column(scale=4):
102
  candidates_box.render()
103
  with gr.Column(scale=1, min_width=50):
104
  submit_btn = gr.Button(