Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ def predict(target_tag, sort_by="descend"):
|
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=predict,
|
| 25 |
inputs=[
|
| 26 |
-
gr.
|
| 27 |
-
gr.
|
| 28 |
],
|
| 29 |
outputs=gr.Label(num_top_classes=50),
|
| 30 |
)
|
|
|
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=predict,
|
| 25 |
inputs=[
|
| 26 |
+
gr.Textbox(label="Target tag", value="otoko no ko"),
|
| 27 |
+
gr.Radio(choices=["descending", "ascending"], label="Sort by", value="descending")
|
| 28 |
],
|
| 29 |
outputs=gr.Label(num_top_classes=50),
|
| 30 |
)
|