AbdullahNasir commited on
Commit
539f194
·
1 Parent(s): 03ce4c5

modified app.py to add share=True, ssr=False

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -357,7 +357,7 @@ def process_video(video_path):
357
 
358
  return {"Breathing State per 10s": categories, "Average Breathing Rate": sum(predictions)/len(predictions), "Overall Breathing State": overall_category,}
359
 
360
- demo = gr.Interface(
361
  fn=process_video,
362
  inputs=gr.Video(label="Upload Video for Analysis"),
363
  outputs=gr.JSON(),
@@ -365,4 +365,4 @@ demo = gr.Interface(
365
  description="Upload a video to analyze breathing rate and detect conditions such as Apnea, Tachypnea, and Bradypnea."
366
  )
367
 
368
- demo.launch()
 
357
 
358
  return {"Breathing State per 10s": categories, "Average Breathing Rate": sum(predictions)/len(predictions), "Overall Breathing State": overall_category,}
359
 
360
+ app = gr.Interface(
361
  fn=process_video,
362
  inputs=gr.Video(label="Upload Video for Analysis"),
363
  outputs=gr.JSON(),
 
365
  description="Upload a video to analyze breathing rate and detect conditions such as Apnea, Tachypnea, and Bradypnea."
366
  )
367
 
368
+ app.launch(share=True, ssr=False)