Update app.py
Browse files
app.py
CHANGED
|
@@ -130,11 +130,11 @@ with gr.Blocks(theme=theme) as app:
|
|
| 130 |
submit_button.click(fn=submit_vote, inputs=[username_text, category, cbg], outputs=submit_result)
|
| 131 |
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
app.launch()
|
|
|
|
| 130 |
submit_button.click(fn=submit_vote, inputs=[username_text, category, cbg], outputs=submit_result)
|
| 131 |
|
| 132 |
|
| 133 |
+
with gr.TabItem("Submit Model"):
|
| 134 |
+
category = gr.Dropdown(choices=["Biology", "Physics", "Business", "Chemistry", "Economics", "Philosophy", "History", "Culture", "Computer Science", "Math", "Health", "Law", "Engineering", "Other"], label="Select Category")
|
| 135 |
+
model_id = HuggingfaceHubSearch(label="Hub Model ID", placeholder="Search for model id on Huggingface", search_type="model")
|
| 136 |
+
submit_model_button = gr.Button("Submit Model")
|
| 137 |
+
submit_model_result = gr.Markdown()
|
| 138 |
+
submit_model_button.click(fn=submit_model, inputs=[category, model_id], outputs=submit_model_result)
|
| 139 |
+
|
| 140 |
+
app.launch(share=True)
|