Spaces:
Runtime error
Runtime error
Tolulope Ogunremi commited on
Commit ·
6fa6317
1
Parent(s): aae0736
chaning to blocks
Browse files
app.py
CHANGED
|
@@ -130,8 +130,9 @@ def create_integrated_gradio_interface(analyzer: MultiModelAnalyzer):
|
|
| 130 |
|
| 131 |
model_names = analyzer.get_model_names()
|
| 132 |
|
| 133 |
-
with gr.
|
| 134 |
-
|
|
|
|
| 135 |
# gr.Markdown("Compare HuBERT models and analyze discrete representations")
|
| 136 |
|
| 137 |
with gr.Tabs():
|
|
@@ -156,10 +157,10 @@ def create_integrated_gradio_interface(analyzer: MultiModelAnalyzer):
|
|
| 156 |
)
|
| 157 |
|
| 158 |
# Initialize
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
)
|
| 163 |
|
| 164 |
# Tab 2: Single Model Analysis
|
| 165 |
"""
|
|
@@ -1015,7 +1016,7 @@ def create_integrated_gradio_interface(analyzer: MultiModelAnalyzer):
|
|
| 1015 |
# outputs=[comparison_plot, comparison_plot]
|
| 1016 |
# )
|
| 1017 |
|
| 1018 |
-
return demo
|
| 1019 |
|
| 1020 |
|
| 1021 |
def create_root_interface(output_dir):
|
|
|
|
| 130 |
|
| 131 |
model_names = analyzer.get_model_names()
|
| 132 |
|
| 133 |
+
with gr.Column() as demo:
|
| 134 |
+
|
| 135 |
+
gr.Markdown("Discrete Token Phoneme Analysis")
|
| 136 |
# gr.Markdown("Compare HuBERT models and analyze discrete representations")
|
| 137 |
|
| 138 |
with gr.Tabs():
|
|
|
|
| 157 |
)
|
| 158 |
|
| 159 |
# Initialize
|
| 160 |
+
# refresh_comparison_btn.click(
|
| 161 |
+
# fn=update_comparison,
|
| 162 |
+
# outputs=[comparison_plot, metrics_table]
|
| 163 |
+
# )
|
| 164 |
|
| 165 |
# Tab 2: Single Model Analysis
|
| 166 |
"""
|
|
|
|
| 1016 |
# outputs=[comparison_plot, comparison_plot]
|
| 1017 |
# )
|
| 1018 |
|
| 1019 |
+
# return demo
|
| 1020 |
|
| 1021 |
|
| 1022 |
def create_root_interface(output_dir):
|