test
Browse files
app.py
CHANGED
|
@@ -97,12 +97,13 @@ with demo:
|
|
| 97 |
"""
|
| 98 |
)
|
| 99 |
# Show plot when the gradio app is initialized
|
| 100 |
-
|
|
|
|
| 101 |
# Update plot when any of the inputs change
|
| 102 |
plot_inputs = [gpu_selector, omit_offload]
|
| 103 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 104 |
omit_offload.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 105 |
-
with gr.TabItem("OPT:
|
| 106 |
plot_fn = functools.partial(get_plot, "OPT: Summarization")
|
| 107 |
with gr.Row():
|
| 108 |
with gr.Column(scale=0.3):
|
|
@@ -179,7 +180,7 @@ with demo:
|
|
| 179 |
plot_inputs = [gpu_selector, omit_offload]
|
| 180 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 181 |
omit_offload.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 182 |
-
with gr.TabItem("Flan-T5:
|
| 183 |
plot_fn = functools.partial(get_plot, "Flan-T5: Summarization")
|
| 184 |
with gr.Row():
|
| 185 |
with gr.Column(scale=0.3):
|
|
|
|
| 97 |
"""
|
| 98 |
)
|
| 99 |
# Show plot when the gradio app is initialized
|
| 100 |
+
with gr.Column(scale=0.7):
|
| 101 |
+
plot = gr.Image(value=plot_fn("A100 (80GB)", "No"))
|
| 102 |
# Update plot when any of the inputs change
|
| 103 |
plot_inputs = [gpu_selector, omit_offload]
|
| 104 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 105 |
omit_offload.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 106 |
+
with gr.TabItem("OPT: Summ"):
|
| 107 |
plot_fn = functools.partial(get_plot, "OPT: Summarization")
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column(scale=0.3):
|
|
|
|
| 180 |
plot_inputs = [gpu_selector, omit_offload]
|
| 181 |
gpu_selector.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 182 |
omit_offload.change(fn=plot_fn, inputs=plot_inputs, outputs=plot)
|
| 183 |
+
with gr.TabItem("Flan-T5: Summ"):
|
| 184 |
plot_fn = functools.partial(get_plot, "Flan-T5: Summarization")
|
| 185 |
with gr.Row():
|
| 186 |
with gr.Column(scale=0.3):
|