Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import requests
|
|
| 4 |
import huggingface_hub
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
-
data = pd.read_csv("data.csv")
|
| 8 |
webhook_url = os.environ.get("WEBHOOK_URL")
|
| 9 |
|
| 10 |
def filter_table(cols, name, type, arch, license):
|
|
@@ -64,8 +64,7 @@ with gr.Blocks(css=".tab-buttons button{font-size:1.3em}") as demo:
|
|
| 64 |
with gr.Column():
|
| 65 |
colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:])
|
| 66 |
|
| 67 |
-
table = gr.Dataframe(filter_table([],"",[n for n in data["Type"].unique() if n not in ["⌛ Pending"]],list(data["Architecture"].unique()),list(data["License"].unique())),
|
| 68 |
-
datatype=["str","markdown","number","number","number","number","number","number","number","str","str","str"])
|
| 69 |
|
| 70 |
# actions
|
| 71 |
|
|
|
|
| 4 |
import huggingface_hub
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
+
data = pd.read_csv("data.csv", dtype="str")
|
| 8 |
webhook_url = os.environ.get("WEBHOOK_URL")
|
| 9 |
|
| 10 |
def filter_table(cols, name, type, arch, license):
|
|
|
|
| 64 |
with gr.Column():
|
| 65 |
colfilter = gr.CheckboxGroup(label="Hide columns", choices=list(data.columns)[2:])
|
| 66 |
|
| 67 |
+
table = gr.Dataframe(filter_table([],"",[n for n in data["Type"].unique() if n not in ["⌛ Pending"]],list(data["Architecture"].unique()),list(data["License"].unique())), datatype="markdown")
|
|
|
|
| 68 |
|
| 69 |
# actions
|
| 70 |
|