qiqiWav commited on
Commit
82fc346
·
verified ·
1 Parent(s): a52b9c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
  import requests
5
 
6
 
@@ -120,11 +120,11 @@ with gr.Blocks() as app:
120
  submit_button.click(fn=lambda: "Please log in to submit your vote.", inputs=[], outputs=submit_result)
121
 
122
 
123
- with gr.TabItem("Submit Model"):
124
- category = gr.Dropdown(choices=["Biology", "Physics", "Business", "Chemistry", "Economics", "Philosophy", "History", "Culture", "Computer Science", "Math", "Health", "Law", "Engineering", "Other"], label="Select Category")
125
- model_id = HuggingfaceHubSearch(label="Hub Model ID", placeholder="Search for model id on Huggingface", search_type="model")
126
- submit_model_button = gr.Button("Submit Model")
127
- submit_model_result = gr.Label()
128
- submit_model_button.click(fn=submit_model, inputs=[category, model_id], outputs=submit_model_result)
129
 
130
  app.launch()
 
1
  import gradio as gr
2
  import pandas as pd
3
+ # from gradio_huggingfacehub_search import HuggingfaceHubSearch
4
  import requests
5
 
6
 
 
120
  submit_button.click(fn=lambda: "Please log in to submit your vote.", inputs=[], outputs=submit_result)
121
 
122
 
123
+ # with gr.TabItem("Submit Model"):
124
+ # category = gr.Dropdown(choices=["Biology", "Physics", "Business", "Chemistry", "Economics", "Philosophy", "History", "Culture", "Computer Science", "Math", "Health", "Law", "Engineering", "Other"], label="Select Category")
125
+ # model_id = HuggingfaceHubSearch(label="Hub Model ID", placeholder="Search for model id on Huggingface", search_type="model")
126
+ # submit_model_button = gr.Button("Submit Model")
127
+ # submit_model_result = gr.Label()
128
+ # submit_model_button.click(fn=submit_model, inputs=[category, model_id], outputs=submit_model_result)
129
 
130
  app.launch()