derek-thomas HF staff commited on
Commit
6a9c17d
1 Parent(s): 6bc96ff

Adding better readme

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -1,25 +1,34 @@
1
  import logging
2
- import sys
3
 
4
  import gradio as gr
5
  from main_backend_lighteval import run_auto_eval
6
  from src.display.log_visualizer import log_file_to_html_string
7
  from src.display.css_html_js import dark_mode_gradio_js
8
- from src.envs import REFRESH_RATE
 
9
 
10
  logging.basicConfig(level=logging.INFO)
11
 
12
 
13
  intro_md = f"""
14
  # Intro
15
- This is just a visual for the auto evaluator. Note that the lines of the log visual are reversed.
 
 
 
 
 
 
 
 
16
  # Logs
 
17
  """
18
 
19
  with gr.Blocks(js=dark_mode_gradio_js) as demo:
20
  with gr.Tab("Application"):
21
  gr.Markdown(intro_md)
22
- output = gr.HTML(log_file_to_html_string, every=10)
23
  dummy = gr.Markdown(run_auto_eval, every=REFRESH_RATE, visible=False)
24
 
25
  if __name__ == '__main__':
 
1
  import logging
 
2
 
3
  import gradio as gr
4
  from main_backend_lighteval import run_auto_eval
5
  from src.display.log_visualizer import log_file_to_html_string
6
  from src.display.css_html_js import dark_mode_gradio_js
7
+ from src.envs import REFRESH_RATE, REPO_ID, QUEUE_REPO, RESULTS_REPO
8
+ from src.logging import setup_logger
9
 
10
  logging.basicConfig(level=logging.INFO)
11
 
12
 
13
  intro_md = f"""
14
  # Intro
15
+ This is just a visual for the auto evaluator.
16
+
17
+ # Important links
18
+ | Description | Link |
19
+ |-----------------|------|
20
+ | Leaderboard | [{REPO_ID}](https://huggingface.co/spaces/{REPO_ID}) |
21
+ | Queue Repo | [{QUEUE_REPO}](https://huggingface.co/datasets/{QUEUE_REPO}) |
22
+ | Results Repo | [{RESULTS_REPO}](https://huggingface.co/datasets/{RESULTS_REPO}) |
23
+
24
  # Logs
25
+ Note that the lines of the log visual are reversed.
26
  """
27
 
28
  with gr.Blocks(js=dark_mode_gradio_js) as demo:
29
  with gr.Tab("Application"):
30
  gr.Markdown(intro_md)
31
+ output = gr.HTML(log_file_to_html_string, every=1)
32
  dummy = gr.Markdown(run_auto_eval, every=REFRESH_RATE, visible=False)
33
 
34
  if __name__ == '__main__':