XufengDuan commited on
Commit
5cf4bb0
·
1 Parent(s): 901c13d

update scripts

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -217,10 +217,14 @@ try:
217
  with demo:
218
  gr.HTML(about.TITLE)
219
  gr.Markdown(about.INTRODUCTION_TEXT, elem_classes="markdown-text")
220
- def display_animated_radar_chart():
221
- with open("./animated_radar_chart.html", "r") as f:
222
- return f.read()
223
- gr.HTML(display_animated_radar_chart())
 
 
 
 
224
 
225
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
226
  with gr.TabItem("🏅 LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):
 
217
  with demo:
218
  gr.HTML(about.TITLE)
219
  gr.Markdown(about.INTRODUCTION_TEXT, elem_classes="markdown-text")
220
+ import gradio as gr
221
+
222
+
223
+ def display_radar_chart():
224
+ return """
225
+ <iframe src="./animated_radar_chart.html" width="100%" height="600px" style="border:none;"></iframe>
226
+ """
227
+ gr.HTML(display_radar_chart())
228
 
229
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
230
  with gr.TabItem("🏅 LLM Benchmark", elem_id="llm-benchmark-tab-table", id=0):