yeliudev commited on
Commit
5d3c3d0
·
verified ·
1 Parent(s): e96a3aa

Disable flagging

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,7 +95,7 @@ def main(video, query, model, cfg, fig, ax):
95
 
96
  model, cfg = init_model(CONFIG, WEIGHT)
97
 
98
- plt.tight_layout(rect=(0.02, 0.02, 0.95, 0.885))
99
  fig, ax = plt.subplots(figsize=(10, 5.5))
100
 
101
  demo = gr.Interface(
@@ -107,7 +107,7 @@ demo = gr.Interface(
107
  headers=['Start Time', 'End Time', 'Score'], label='Moment Retrieval'),
108
  gr.Plot(label='Highlight Detection')
109
  ],
110
- allow_flagging='auto',
111
  title=TITLE,
112
  description=DESCRIPTION)
113
  demo.launch()
 
95
 
96
  model, cfg = init_model(CONFIG, WEIGHT)
97
 
98
+ plt.tight_layout(rect=(0.02, 0.05, 0.95, 0.885))
99
  fig, ax = plt.subplots(figsize=(10, 5.5))
100
 
101
  demo = gr.Interface(
 
107
  headers=['Start Time', 'End Time', 'Score'], label='Moment Retrieval'),
108
  gr.Plot(label='Highlight Detection')
109
  ],
110
+ allow_flagging='never',
111
  title=TITLE,
112
  description=DESCRIPTION)
113
  demo.launch()