Spaces:
Running
Running
kovacsvi
commited on
Commit
·
54f2500
1
Parent(s):
407c5e0
css parameter in Blocks instead of TabbedInterface
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ css = """
|
|
25 |
}
|
26 |
"""
|
27 |
|
28 |
-
with gr.Blocks() as demo:
|
29 |
gr.Markdown(
|
30 |
f"""
|
31 |
<style>
|
@@ -46,8 +46,7 @@ with gr.Blocks() as demo:
|
|
46 |
|
47 |
gr.TabbedInterface(
|
48 |
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
|
49 |
-
tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"]
|
50 |
-
css=css
|
51 |
)
|
52 |
|
53 |
if __name__ == "__main__":
|
|
|
25 |
}
|
26 |
"""
|
27 |
|
28 |
+
with gr.Blocks(css=css) as demo:
|
29 |
gr.Markdown(
|
30 |
f"""
|
31 |
<style>
|
|
|
46 |
|
47 |
gr.TabbedInterface(
|
48 |
interface_list=[cap_demo, manifesto_demo, sentiment_demo, emotion_demo, e9_demo,illframes_demo, ner_demo, ontolisst_demo],
|
49 |
+
tab_names=["CAP", "Manifesto", "Sentiment (3)", "Emotions (6)","Emotions (9)", "ILLFRAMES", "Named Entity Recognition", "ONTOLISST"]
|
|
|
50 |
)
|
51 |
|
52 |
if __name__ == "__main__":
|