Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
-
from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
| 4 |
|
| 5 |
def update_table(category):
|
| 6 |
data_dict = {
|
|
@@ -75,14 +75,14 @@ with gr.Blocks() as app:
|
|
| 75 |
submit_result = gr.Label()
|
| 76 |
submit_button.click(fn=submit_vote, inputs=vote, outputs=submit_result)
|
| 77 |
|
| 78 |
-
with gr.TabItem("Submit Model"):
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
|
| 88 |
app.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
+
# from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
| 4 |
|
| 5 |
def update_table(category):
|
| 6 |
data_dict = {
|
|
|
|
| 75 |
submit_result = gr.Label()
|
| 76 |
submit_button.click(fn=submit_vote, inputs=vote, outputs=submit_result)
|
| 77 |
|
| 78 |
+
# with gr.TabItem("Submit Model"):
|
| 79 |
+
# model_id = HuggingfaceHubSearch(
|
| 80 |
+
# label="Hub Model ID",
|
| 81 |
+
# placeholder="Search for model id on Huggingface",
|
| 82 |
+
# search_type="model",
|
| 83 |
+
# )
|
| 84 |
+
# submit_model_button = gr.Button("Submit Model")
|
| 85 |
+
# submit_model_result = gr.Label()
|
| 86 |
+
# submit_model_button.click(fn=submit_model, inputs=[model_id], outputs=submit_model_result)
|
| 87 |
|
| 88 |
app.launch()
|