Gent (PG/R - Comp Sci & Elec Eng) commited on
Commit ·
0013101
1
Parent(s): d062429
fix err
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
import pandas as pd
|
| 3 |
from nltk.corpus import wordnet as wn
|
| 4 |
import nltk
|
| 5 |
-
nltk.download()
|
| 6 |
|
| 7 |
df_tree = pd.read_csv("data/20k_tree.csv")
|
| 8 |
df_metrics = pd.read_csv("data/benchmark.csv")
|
|
@@ -26,7 +26,7 @@ with gr.Blocks() as app:
|
|
| 26 |
|
| 27 |
gr.Label("Benchmark Explorer", style="h1")
|
| 28 |
model_list = list(set(df_metrics.model.values.tolist()))
|
| 29 |
-
gr.TextArea(f"This is a simple interface to query the benchmark results. You can use * as a wildcard for the model name. The available models are {
|
| 30 |
with gr.Row():
|
| 31 |
# model = gr.inputs.Dropdown(label="model",choices=list(set(df_metrics.model.values.tolist())))
|
| 32 |
model = gr.Textbox(label="model")
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
from nltk.corpus import wordnet as wn
|
| 4 |
import nltk
|
| 5 |
+
nltk.download('wordnet')
|
| 6 |
|
| 7 |
df_tree = pd.read_csv("data/20k_tree.csv")
|
| 8 |
df_metrics = pd.read_csv("data/benchmark.csv")
|
|
|
|
| 26 |
|
| 27 |
gr.Label("Benchmark Explorer", style="h1")
|
| 28 |
model_list = list(set(df_metrics.model.values.tolist()))
|
| 29 |
+
gr.TextArea(f"This is a simple interface to query the benchmark results. You can use * as a wildcard for the model name. The available models are {', '.join(model_list)}.", lines=2)
|
| 30 |
with gr.Row():
|
| 31 |
# model = gr.inputs.Dropdown(label="model",choices=list(set(df_metrics.model.values.tolist())))
|
| 32 |
model = gr.Textbox(label="model")
|