qiqiWav commited on
Commit
959181f
·
verified ·
1 Parent(s): a31c068

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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
- 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()
 
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()