NightPrince commited on
Commit
effbdf0
·
verified ·
1 Parent(s): 1cd994f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -116,7 +116,7 @@ def process_input(video_input):
116
 
117
  interface = gr.Interface(
118
  fn=process_input,
119
- inputs=gr.Video(label="Upload or Stream Video"), # Removed source and type parameters
120
  outputs=[
121
  gr.Label(label="Frames per second"),
122
  gr.Label(label="Total number of frames"),
@@ -127,9 +127,8 @@ interface = gr.Interface(
127
  ],
128
  title="Respiration Rate Analyzer",
129
  description="Upload a video or stream to analyze respiration rate with a beautiful interactive interface.",
130
- theme="huggingface",
131
  live=True,
132
- layout="vertical",
133
  css="""
134
  body {
135
  background-color: #f0f8ff;
 
116
 
117
  interface = gr.Interface(
118
  fn=process_input,
119
+ inputs=gr.Video(label="Upload or Stream Video"),
120
  outputs=[
121
  gr.Label(label="Frames per second"),
122
  gr.Label(label="Total number of frames"),
 
127
  ],
128
  title="Respiration Rate Analyzer",
129
  description="Upload a video or stream to analyze respiration rate with a beautiful interactive interface.",
130
+ theme="default", # Changed from "huggingface" to "default"
131
  live=True,
 
132
  css="""
133
  body {
134
  background-color: #f0f8ff;