Spaces:
Running
Running
coming soon
Browse files
interfaces/cap_minor_media.py
CHANGED
@@ -64,10 +64,16 @@ def predict_cap(text, language, domain):
|
|
64 |
|
65 |
return predict(text, model_id, tokenizer_id)
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
demo = gr.Interface(
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
outputs=[gr.Label(num_top_classes=5, label="Output"), gr.Markdown()])
|
|
|
64 |
|
65 |
return predict(text, model_id, tokenizer_id)
|
66 |
|
67 |
+
#demo = gr.Interface(
|
68 |
+
# title="CAP Media Topics Babel Demo",
|
69 |
+
# fn=predict_cap,
|
70 |
+
# inputs=[gr.Textbox(lines=6, label="Input"),
|
71 |
+
# gr.Dropdown(languages, label="Language"),
|
72 |
+
# gr.Dropdown(domains.keys(), label="Domain")],
|
73 |
+
# outputs=[gr.Label(num_top_classes=5, label="Output"), gr.Markdown()])
|
74 |
demo = gr.Interface(
|
75 |
+
fn=lambda: "🚧 Coming Soon 🚧",
|
76 |
+
inputs=[],
|
77 |
+
outputs=gr.Markdown(),
|
78 |
+
title="CAP Minor + Media Topics Babel Demo"
|
79 |
+
)
|
|