Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -191,19 +191,19 @@ if __name__ == "__main__":
|
|
191 |
with gr.Row():
|
192 |
plotly_avg = gr.HTML(label="Plotly Average Performance Chart")
|
193 |
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
196 |
|
197 |
input_text.change(
|
198 |
fn=process_and_visualize,
|
199 |
inputs=input_text,
|
200 |
outputs=[output_text, image_avg, image_line, image_heatmap, image_boxplot, plotly_avg],
|
201 |
)
|
|
|
|
|
|
|
202 |
|
203 |
-
def update_tabs(file_content):
|
204 |
-
_, _, _, _, _, _, plotly_tasks = process_and_visualize(file_content)
|
205 |
-
return {task: gr.HTML(value=html) for task, html in plotly_tasks.items()}
|
206 |
-
|
207 |
-
input_text.change(fn=update_tabs, inputs=input_text, outputs=[])
|
208 |
-
|
209 |
demo.launch(share=True)
|
|
|
191 |
with gr.Row():
|
192 |
plotly_avg = gr.HTML(label="Plotly Average Performance Chart")
|
193 |
|
194 |
+
task_tabs = gr.TabbedInterface(
|
195 |
+
[])
|
196 |
+
def update_tabs(file_content):
|
197 |
+
_, _, _, _, _, _, plotly_tasks = process_and_visualize(file_content)
|
198 |
+
return [gr.HTML(value=html) for html in plotly_tasks.values()]
|
199 |
|
200 |
input_text.change(
|
201 |
fn=process_and_visualize,
|
202 |
inputs=input_text,
|
203 |
outputs=[output_text, image_avg, image_line, image_heatmap, image_boxplot, plotly_avg],
|
204 |
)
|
205 |
+
|
206 |
+
input_text.change(fn=update_tabs, inputs=input_text, outputs=[task_tabs])
|
207 |
+
|
208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
demo.launch(share=True)
|