Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1912,14 +1912,14 @@ def create_interface() -> gr.Blocks:
|
|
| 1912 |
# Bar chart comparison section with tabs inside Accordion
|
| 1913 |
with gr.Accordion("π GPU Comparison (Top 10 by Cost)", open=False):
|
| 1914 |
with gr.Tabs():
|
| 1915 |
-
with gr.Tab("Throughput"):
|
| 1916 |
-
throughput_plot = gr.Plot(label="Throughput Comparison")
|
| 1917 |
with gr.Tab("Cost"):
|
| 1918 |
cost_plot = gr.Plot(label="Cost Comparison")
|
|
|
|
|
|
|
| 1919 |
with gr.Tab("VRAM Utilization"):
|
| 1920 |
vram_plot = gr.Plot(label="VRAM Utilization Comparison")
|
| 1921 |
-
with gr.Tab("Cost Efficiency"):
|
| 1922 |
-
|
| 1923 |
|
| 1924 |
with gr.Accordion("π Details", open=False):
|
| 1925 |
report_out = gr.Markdown()
|
|
@@ -1955,7 +1955,7 @@ def create_interface() -> gr.Blocks:
|
|
| 1955 |
ft_method, rank, batch, sample_count,
|
| 1956 |
input_tokens, output_tokens, dataset_tier, manufacturers,
|
| 1957 |
],
|
| 1958 |
-
outputs=[report_out, rec_out_1, rec_out_2, throughput_plot, cost_plot, vram_plot, efficiency_plot]
|
| 1959 |
)
|
| 1960 |
|
| 1961 |
return demo
|
|
@@ -1966,11 +1966,4 @@ def create_interface() -> gr.Blocks:
|
|
| 1966 |
|
| 1967 |
if __name__ == "__main__":
|
| 1968 |
demo = create_interface()
|
| 1969 |
-
demo.launch(
|
| 1970 |
-
server_name="0.0.0.0",
|
| 1971 |
-
server_port=7860,
|
| 1972 |
-
share=False,
|
| 1973 |
-
ssr_mode=False,
|
| 1974 |
-
show_error=True,
|
| 1975 |
-
quiet=True
|
| 1976 |
-
)
|
|
|
|
| 1912 |
# Bar chart comparison section with tabs inside Accordion
|
| 1913 |
with gr.Accordion("π GPU Comparison (Top 10 by Cost)", open=False):
|
| 1914 |
with gr.Tabs():
|
|
|
|
|
|
|
| 1915 |
with gr.Tab("Cost"):
|
| 1916 |
cost_plot = gr.Plot(label="Cost Comparison")
|
| 1917 |
+
with gr.Tab("Throughput"):
|
| 1918 |
+
throughput_plot = gr.Plot(label="Throughput Comparison")
|
| 1919 |
with gr.Tab("VRAM Utilization"):
|
| 1920 |
vram_plot = gr.Plot(label="VRAM Utilization Comparison")
|
| 1921 |
+
# with gr.Tab("Cost Efficiency"):
|
| 1922 |
+
# efficiency_plot = gr.Plot(label="Cost Efficiency Comparison")
|
| 1923 |
|
| 1924 |
with gr.Accordion("π Details", open=False):
|
| 1925 |
report_out = gr.Markdown()
|
|
|
|
| 1955 |
ft_method, rank, batch, sample_count,
|
| 1956 |
input_tokens, output_tokens, dataset_tier, manufacturers,
|
| 1957 |
],
|
| 1958 |
+
outputs=[report_out, rec_out_1, rec_out_2, throughput_plot, cost_plot, vram_plot] #, efficiency_plot]
|
| 1959 |
)
|
| 1960 |
|
| 1961 |
return demo
|
|
|
|
| 1966 |
|
| 1967 |
if __name__ == "__main__":
|
| 1968 |
demo = create_interface()
|
| 1969 |
+
demo.launch(share=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|