brunneis commited on
Commit
729427c
1 Parent(s): 906efef

Set allowed_paths

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,16 +1,16 @@
1
  import gradio as gr
2
- from gradio_leaderboard import Leaderboard, ColumnFilter, SelectColumns
3
  import pandas as pd
4
  from apscheduler.schedulers.background import BackgroundScheduler
 
5
  from huggingface_hub import snapshot_download
6
 
7
  from src.about import (
8
  CITATION_BUTTON_LABEL,
9
  CITATION_BUTTON_TEXT,
10
  EVALUATION_QUEUE_TEXT,
 
11
  INTRODUCTION_TEXT,
12
  LLM_BENCHMARKS_TEXT,
13
- EVALUATION_SCRIPT,
14
  TITLE,
15
  )
16
  from src.display.css_html_js import custom_css
@@ -21,9 +21,9 @@ from src.display.utils import (
21
  EVAL_TYPES,
22
  AutoEvalColumn,
23
  ModelType,
24
- fields,
25
  WeightType,
26
- Precision
27
  )
28
  from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, QUEUE_REPO, REPO_ID, RESULTS_REPO, TOKEN
29
  from src.populate import get_evaluation_queue_df, get_leaderboard_df
@@ -210,4 +210,4 @@ with demo:
210
  scheduler = BackgroundScheduler()
211
  scheduler.add_job(restart_space, "interval", seconds=1800)
212
  scheduler.start()
213
- demo.queue(default_concurrency_limit=40).launch()
 
1
  import gradio as gr
 
2
  import pandas as pd
3
  from apscheduler.schedulers.background import BackgroundScheduler
4
+ from gradio_leaderboard import ColumnFilter, Leaderboard, SelectColumns
5
  from huggingface_hub import snapshot_download
6
 
7
  from src.about import (
8
  CITATION_BUTTON_LABEL,
9
  CITATION_BUTTON_TEXT,
10
  EVALUATION_QUEUE_TEXT,
11
+ EVALUATION_SCRIPT,
12
  INTRODUCTION_TEXT,
13
  LLM_BENCHMARKS_TEXT,
 
14
  TITLE,
15
  )
16
  from src.display.css_html_js import custom_css
 
21
  EVAL_TYPES,
22
  AutoEvalColumn,
23
  ModelType,
24
+ Precision,
25
  WeightType,
26
+ fields,
27
  )
28
  from src.envs import API, EVAL_REQUESTS_PATH, EVAL_RESULTS_PATH, QUEUE_REPO, REPO_ID, RESULTS_REPO, TOKEN
29
  from src.populate import get_evaluation_queue_df, get_leaderboard_df
 
210
  scheduler = BackgroundScheduler()
211
  scheduler.add_job(restart_space, "interval", seconds=1800)
212
  scheduler.start()
213
+ demo.queue(default_concurrency_limit=40).launch(allowed_paths=["images/*"])