Future-Tense commited on
Commit
8cd14af
β€’
1 Parent(s): eb7cee4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,9 +50,9 @@ def bk_fn(cur):
50
  next = 0
51
  return next
52
  def tog_on():
53
- return 1,gr.Markdown.update("""<right><h7>Playing 😴</h7></right>""")
54
  def tog_off():
55
- return 0,gr.Markdown.update("""<right><h7>Stopped πŸ’€</h7></right>""")
56
 
57
  def pl_fn(cap,cur,last,fps,pl_tog):
58
  player.set(cv2.CAP_PROP_POS_FRAMES, cur)
@@ -68,7 +68,7 @@ def pl_fn(cap,cur,last,fps,pl_tog):
68
 
69
  with gr.Blocks() as app:
70
  gr.Markdown("""<center><h1>Slow Video Object Detection</h1><h4>Gradio and ultralyticsplus/yolov8s</h4><h4>Probably faster on GPU πŸ€·β€β™‚οΈ</h4></center>""")
71
- play_state = gr.Markdown("""<right><h7>Stopped</h7></right>""")
72
 
73
  with gr.Row():
74
  with gr.Column():
 
50
  next = 0
51
  return next
52
  def tog_on():
53
+ return 1,gr.Markdown.update("""<center><h7>Status: Playing 😴</h7></center>""")
54
  def tog_off():
55
+ return 0,gr.Markdown.update("""<center><h7>Status: Stopped πŸ’€</h7></center>""")
56
 
57
  def pl_fn(cap,cur,last,fps,pl_tog):
58
  player.set(cv2.CAP_PROP_POS_FRAMES, cur)
 
68
 
69
  with gr.Blocks() as app:
70
  gr.Markdown("""<center><h1>Slow Video Object Detection</h1><h4>Gradio and ultralyticsplus/yolov8s</h4><h4>Probably faster on GPU πŸ€·β€β™‚οΈ</h4></center>""")
71
+ play_state = gr.Markdown("""<right><h7></h7></right>""")
72
 
73
  with gr.Row():
74
  with gr.Column():