ovi054 commited on
Commit
44dc0b1
1 Parent(s): 40794ce

update commit

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import cv2
3
  import numpy as np
4
  import os
5
- HF_TOKEN = os.getenv("HF_TOKEN", default ="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")
6
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "video-data")
7
  # Function to extract the last frame from a video
8
  def extract_last_frame(video_file):
@@ -29,7 +29,8 @@ demo = gr.Interface(
29
  outputs="image",
30
  title="Video to Last Frame",
31
  description="Extract the last frame from a video",
32
- allow_flagging="auto",flagging_callback=hf_writer
 
33
  )
34
 
35
  if __name__ == "__main__":
 
2
  import cv2
3
  import numpy as np
4
  import os
5
+ HF_TOKEN = os.getenv("HF_TOKEN", default ="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")
6
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "video-data")
7
  # Function to extract the last frame from a video
8
  def extract_last_frame(video_file):
 
29
  outputs="image",
30
  title="Video to Last Frame",
31
  description="Extract the last frame from a video",
32
+ allow_flagging="auto",
33
+ flagging_callback=hf_writer
34
  )
35
 
36
  if __name__ == "__main__":