karimouda commited on
Commit
244e5a3
·
1 Parent(s): a0ce5c3

changed markdown to HTML in deep dive model info

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -183,13 +183,13 @@ def get_model_info_blocks(chosen_model_name):
183
  with gr.Accordion("Model Details"):
184
 
185
  with gr.Row():
186
- model_name = gr.Markdown("""<span class='deep-dive-metric'><b>Model Name:</b> {}</span> """.format(chosen_model_name))
187
  with gr.Row():
188
- benchmark_score = gr.Markdown("""<span class='deep-dive-metric'><b>Benchmark Score:</b>{}/10</span>""".format(filtered_df["Benchmark Score"][0]))
189
- rank = gr.Markdown("""<span class='deep-dive-metric'><b>Benchmark Rank:</b>{}</span>""".format(filtered_df["Rank"][0]))
190
- speed = gr.Markdown("""<span class='deep-dive-metric'><b>Speed:</b>{} words per second</span>""".format(filtered_df["Speed (words/sec)"][0]))
191
- contamination = gr.Markdown("""<span class='deep-dive-metric'><b>Contamination Score:</b>{}</span>""".format(filtered_df["Contamination Score"][0]))
192
- size = gr.Markdown("""<span class='deep-dive-metric'><b>Size Category:</b>{}</span>""".format(filtered_df["Category"][0]))
193
 
194
  with gr.Row():
195
  skills_bar = gr.BarPlot(
 
183
  with gr.Accordion("Model Details"):
184
 
185
  with gr.Row():
186
+ model_name = gr.HTML("""<span class='deep-dive-metric'><b>Model Name:</b> {}</span> """.format(chosen_model_name))
187
  with gr.Row():
188
+ benchmark_score = gr.HTML("""<span class='deep-dive-metric'><b>Benchmark Score:</b>{}/10</span>""".format(filtered_df["Benchmark Score"][0]))
189
+ rank = gr.HTML("""<span class='deep-dive-metric'><b>Benchmark Rank:</b>{}</span>""".format(filtered_df["Rank"][0]))
190
+ speed = gr.HTML("""<span class='deep-dive-metric'><b>Speed:</b>{} words per second</span>""".format(filtered_df["Speed (words/sec)"][0]))
191
+ contamination = gr.HTML("""<span class='deep-dive-metric'><b>Contamination Score:</b>{}</span>""".format(filtered_df["Contamination Score"][0]))
192
+ size = gr.HTML("""<span class='deep-dive-metric'><b>Size Category:</b>{}</span>""".format(filtered_df["Category"][0]))
193
 
194
  with gr.Row():
195
  skills_bar = gr.BarPlot(