galb-dai commited on
Commit
9558f10
·
1 Parent(s): bedf605

Add import.

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -1,5 +1,7 @@
1
  # app.py
2
 
 
 
3
  import gradio as gr
4
  import pandas as pd
5
  import plotly.graph_objects as go
@@ -8,16 +10,17 @@ from gradio_leaderboard import Leaderboard, SelectColumns
8
  from huggingface_hub import whoami
9
 
10
  # HTML is split so we can inject Gradio media (images/video) where needed.
11
- from src.about import WHAT_IS_F1_HTML_AFTER_TIER1FIG_TAIL, SUBMISSION_TERMS_TEXT # tail after Tier1 fig
12
  from src.about import WHAT_IS_F1_HTML_AFTER_VIDEO # text immediately after the video
13
  from src.about import WHAT_IS_F1_HTML_AFTER_WARMUPFIG # text between warmup/tier1 figs
14
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_AFTER_TABS # text after the heading, before the first figure
15
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_BEFORE_TABS # up to (and including) the "Infinite Well" heading
16
  from src.about import WHAT_IS_F1_HTML_EVAL_BEFORE_WARMUPFIG # evaluation section up to before Warmup fig
17
- from src.about import ( # ⬅️ split to insert the tabs right after the heading
18
  CITATION_BUTTON_LABEL,
19
  CITATION_BUTTON_TEXT,
20
  EVALUATION_QUEUE_TEXT,
 
 
21
  WHAT_IS_F1_HTML_TOP,
22
  )
23
  from src.datamodel.data import F1Data
 
1
  # app.py
2
 
3
+ import math
4
+
5
  import gradio as gr
6
  import pandas as pd
7
  import plotly.graph_objects as go
 
10
  from huggingface_hub import whoami
11
 
12
  # HTML is split so we can inject Gradio media (images/video) where needed.
 
13
  from src.about import WHAT_IS_F1_HTML_AFTER_VIDEO # text immediately after the video
14
  from src.about import WHAT_IS_F1_HTML_AFTER_WARMUPFIG # text between warmup/tier1 figs
15
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_AFTER_TABS # text after the heading, before the first figure
16
  from src.about import WHAT_IS_F1_HTML_BOTTOM_A_BEFORE_TABS # up to (and including) the "Infinite Well" heading
17
  from src.about import WHAT_IS_F1_HTML_EVAL_BEFORE_WARMUPFIG # evaluation section up to before Warmup fig
18
+ from src.about import ( # tail after Tier1 fig; ⬅️ split to insert the tabs right after the heading
19
  CITATION_BUTTON_LABEL,
20
  CITATION_BUTTON_TEXT,
21
  EVALUATION_QUEUE_TEXT,
22
+ SUBMISSION_TERMS_TEXT,
23
+ WHAT_IS_F1_HTML_AFTER_TIER1FIG_TAIL,
24
  WHAT_IS_F1_HTML_TOP,
25
  )
26
  from src.datamodel.data import F1Data