ezamorag commited on
Commit
7557d64
·
1 Parent(s): cb5684b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -138,7 +138,8 @@ def testing_directcounter(input_img):
138
  return img, text
139
 
140
  def video_identity(video):
141
- return video
 
142
 
143
  with gr.Blocks() as demo:
144
  gr.Markdown("Submit an image with insects in a trap")
@@ -160,9 +161,10 @@ with gr.Blocks() as demo:
160
  with gr.Tab("Procesing on a video ...under development!"):
161
  with gr.Row():
162
  input3 = gr.Video()
163
- output3 = gr.Video()
164
  button3 = gr.Button("Submit")
165
  button3.click(video_identity, input3, output3)
 
166
  examples_list = glob("img_examples/*.jpg")
167
  random.shuffle(examples_list)
168
  examples = gr.Examples(examples=examples_list[:4],inputs=[input1])
 
138
  return img, text
139
 
140
  def video_identity(video):
141
+ print(type(video))
142
+ return video, str(type(video))
143
 
144
  with gr.Blocks() as demo:
145
  gr.Markdown("Submit an image with insects in a trap")
 
161
  with gr.Tab("Procesing on a video ...under development!"):
162
  with gr.Row():
163
  input3 = gr.Video()
164
+ output3 = [gr.Video(), gr.Textbox(lines=5)]
165
  button3 = gr.Button("Submit")
166
  button3.click(video_identity, input3, output3)
167
+
168
  examples_list = glob("img_examples/*.jpg")
169
  random.shuffle(examples_list)
170
  examples = gr.Examples(examples=examples_list[:4],inputs=[input1])