reab5555 commited on
Commit
3193b57
·
verified ·
1 Parent(s): 434a8d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
5
  import matplotlib
6
  import numpy as np
7
 
8
- matplotlib.rcParams['figure.dpi'] = 300
9
- matplotlib.rcParams['savefig.dpi'] = 300
10
 
11
  def process_and_show_completion(video_input_path, anomaly_threshold_input, fps, progress=gr.Progress()):
12
  try:
@@ -72,7 +72,7 @@ with gr.Blocks() as iface:
72
  with gr.Row():
73
  video_input = gr.Video()
74
 
75
- anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=3, label="Anomaly Detection Threshold (Standard deviation)")
76
  fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second (FPS)")
77
  process_btn = gr.Button("Detect Anomalies")
78
  progress_bar = gr.Progress()
 
5
  import matplotlib
6
  import numpy as np
7
 
8
+ matplotlib.rcParams['figure.dpi'] = 400
9
+ matplotlib.rcParams['savefig.dpi'] = 400
10
 
11
  def process_and_show_completion(video_input_path, anomaly_threshold_input, fps, progress=gr.Progress()):
12
  try:
 
72
  with gr.Row():
73
  video_input = gr.Video()
74
 
75
+ anomaly_threshold = gr.Slider(minimum=1, maximum=5, step=0.1, value=4, label="Anomaly Detection Threshold (Standard deviation)")
76
  fps_slider = gr.Slider(minimum=5, maximum=20, step=1, value=10, label="Frames Per Second (FPS)")
77
  process_btn = gr.Button("Detect Anomalies")
78
  progress_bar = gr.Progress()