Spaces:
Running
Running
kovacsvi
commited on
Commit
·
57caf39
1
Parent(s):
8ea1705
ooops
Browse files
interfaces/cap_minor_media.py
CHANGED
@@ -152,12 +152,12 @@ You can choose between two approaches for making predictions:
|
|
152 |
demo = gr.Interface(
|
153 |
title="CAP Media/Minor Topics Babel Demo",
|
154 |
fn=predict_cap,
|
155 |
-
inputs=[gr.Markdown(description)
|
156 |
gr.Radio(
|
157 |
choices=["Hierarchical Classification", "Flat Classification"],
|
158 |
label="Prediction Mode",
|
159 |
value="Hierarchical Classification"
|
160 |
-
)
|
161 |
gr.Textbox(lines=6, label="Input"),
|
162 |
gr.Dropdown(languages, label="Language"),
|
163 |
gr.Dropdown(domains.keys(), label="Domain")],
|
|
|
152 |
demo = gr.Interface(
|
153 |
title="CAP Media/Minor Topics Babel Demo",
|
154 |
fn=predict_cap,
|
155 |
+
inputs=[gr.Markdown(description),
|
156 |
gr.Radio(
|
157 |
choices=["Hierarchical Classification", "Flat Classification"],
|
158 |
label="Prediction Mode",
|
159 |
value="Hierarchical Classification"
|
160 |
+
),
|
161 |
gr.Textbox(lines=6, label="Input"),
|
162 |
gr.Dropdown(languages, label="Language"),
|
163 |
gr.Dropdown(domains.keys(), label="Domain")],
|