Spaces:
Build error
Build error
derek-thomas commited on
Commit ·
6a9c17d
1
Parent(s): 6bc96ff
Adding better readme
Browse files12345678910111213141516171819202122232425import loggingimport sysimport gradio as grfrom main_backend_lighteval import run_auto_evalfrom src.display.log_visualizer import log_file_to_html_stringfrom src.display.css_html_js import dark_mode_gradio_jsfrom src.envs import REFRESH_RATElogging.basicConfig(level=logging.INFO)intro_md = f"""# IntroThis is just a visual for the auto evaluator. Note that the lines of the log visual are reversed.# Logs"""with gr.Blocks(js=dark_mode_gradio_js) as demo:with gr.Tab("Application"):gr.Markdown(intro_md)output = gr.HTML(log_file_to_html_string, every=10)dummy = gr.Markdown(run_auto_eval, every=REFRESH_RATE, visible=False)if __name__ == '__main__':12345678910111213141516171819202122232425262728293031323334import loggingimport gradio as grfrom main_backend_lighteval import run_auto_evalfrom src.display.log_visualizer import log_file_to_html_stringfrom src.display.css_html_js import dark_mode_gradio_jsfrom src.envs import REFRESH_RATE, REPO_ID, QUEUE_REPO, RESULTS_REPOfrom src.logging import setup_loggerlogging.basicConfig(level=logging.INFO)intro_md = f"""# IntroThis is just a visual for the auto evaluator.# Important links| Description | Link ||-----------------|------|| Leaderboard | [{REPO_ID}](https://huggingface.co/spaces/{REPO_ID}) || Queue Repo | [{QUEUE_REPO}](https://huggingface.co/datasets/{QUEUE_REPO}) || Results Repo | [{RESULTS_REPO}](https://huggingface.co/datasets/{RESULTS_REPO}) |# LogsNote that the lines of the log visual are reversed."""with gr.Blocks(js=dark_mode_gradio_js) as demo:with gr.Tab("Application"):gr.Markdown(intro_md)output = gr.HTML(log_file_to_html_string, every=1)dummy = gr.Markdown(run_auto_eval, every=REFRESH_RATE, visible=False)if __name__ == '__main__':
app.py+13-4