lmzheng commited on
Commit
c3df5b3
1 Parent(s): 1ae39df

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,5 +1,7 @@
1
  """A gradio app that renders a static leaderboard. This is used for Hugging Face Space."""
 
2
  import pickle
 
3
  import gradio as gr
4
 
5
 
@@ -75,5 +77,10 @@ def build_demo(elo_results_file):
75
  return demo
76
 
77
 
78
- demo = build_demo("elo_results_20230508.pkl")
79
- demo.launch(share=True)
 
 
 
 
 
 
1
  """A gradio app that renders a static leaderboard. This is used for Hugging Face Space."""
2
+ import argparse
3
  import pickle
4
+
5
  import gradio as gr
6
 
7
 
 
77
  return demo
78
 
79
 
80
+ if __name__ == "__main__":
81
+ parser = argparse.ArgumentParser()
82
+ parser.add_argument("--share", action="store_true")
83
+ args = parser.parse_args()
84
+
85
+ demo = build_demo("elo_results_20230508.pkl")
86
+ demo.launch(share=args.share)