Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
-
from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
5 |
import requests
|
6 |
from huggingface_hub import HfApi
|
7 |
|
@@ -147,13 +147,13 @@ with gr.Blocks(theme=theme) as app:
|
|
147 |
submit_button.click(fn=submit_vote, inputs=[username_text, category, cbg], outputs=submit_result)
|
148 |
|
149 |
|
150 |
-
with gr.TabItem("Submit Model"):
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
|
159 |
app.launch(share=True)
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
import pandas as pd
|
4 |
+
# from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
5 |
import requests
|
6 |
from huggingface_hub import HfApi
|
7 |
|
|
|
147 |
submit_button.click(fn=submit_vote, inputs=[username_text, category, cbg], outputs=submit_result)
|
148 |
|
149 |
|
150 |
+
# with gr.TabItem("Submit Model"):
|
151 |
+
# category = gr.Dropdown(choices=["Biology", "Physics", "Business", "Chemistry", "Economics", "Philosophy", "History", "Culture", "Computer Science", "Math", "Health", "Law", "Engineering", "Other"], label="Select Category")
|
152 |
+
# customize_category = gr.Textbox(label="Customize category", placeholder="Can't find your category? Enter your own.")
|
153 |
+
# model_id = HuggingfaceHubSearch(label="Hub Model ID", placeholder="Search for model id on Huggingface", search_type="model")
|
154 |
+
# submit_model_button = gr.Button("Submit Model")
|
155 |
+
# submit_model_result = gr.Markdown()
|
156 |
+
# customize_category.change(fn=update_dropdown, inputs=[customize_category, category], outputs=[category])
|
157 |
+
# submit_model_button.click(fn=submit_model, inputs=[category, customize_category, model_id], outputs=submit_model_result)
|
158 |
|
159 |
app.launch(share=True)
|