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

update commit

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -1,9 +1,6 @@
1
  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):
9
  cap = cv2.VideoCapture(video_file)
@@ -28,9 +25,7 @@ demo = gr.Interface(
28
  inputs=gr.Video(),
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__":
 
1
  import gradio as gr
2
  import cv2
3
  import numpy as np
 
 
 
4
  # Function to extract the last frame from a video
5
  def extract_last_frame(video_file):
6
  cap = cv2.VideoCapture(video_file)
 
25
  inputs=gr.Video(),
26
  outputs="image",
27
  title="Video to Last Frame",
28
+ description="Extract the last frame from a video (Like(♡) the project if it helps!)",
 
 
29
  )
30
 
31
  if __name__ == "__main__":