Spaces:
Running
Running
try this
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ tdp_fig = px.scatter(
|
|
| 17 |
log_y=True,
|
| 18 |
)
|
| 19 |
|
| 20 |
-
|
| 21 |
merged_df,
|
| 22 |
x="Total TDP (W)",
|
| 23 |
y="$/Hour",
|
|
@@ -27,6 +27,18 @@ tdp_fig = px.scatter(
|
|
| 27 |
)
|
| 28 |
|
| 29 |
cost_fig = px.scatter(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
merged_df,
|
| 31 |
x="GPU Total Cost",
|
| 32 |
y="$/Hour",
|
|
@@ -69,7 +81,6 @@ with gr.Blocks() as demo:
|
|
| 69 |
gr.Markdown("TODO")
|
| 70 |
with gr.Row():
|
| 71 |
gr.Markdown("### Energy Data")
|
| 72 |
-
with gr.Row():
|
| 73 |
with gr.Column():
|
| 74 |
gr.Markdown(
|
| 75 |
"Double click the names of cloud providers to see the trend per company"
|
|
@@ -79,21 +90,27 @@ with gr.Blocks() as demo:
|
|
| 79 |
gr.Markdown(
|
| 80 |
"Double click the names of GPU models to see the trends per GPU"
|
| 81 |
)
|
| 82 |
-
plt1 = gr.Plot(
|
| 83 |
with gr.Row():
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
label="Organizations",
|
| 89 |
-
info="Pick a characteristic to regenerate plot",
|
| 90 |
-
interactive=True,
|
| 91 |
)
|
| 92 |
-
|
| 93 |
-
with gr.Column(
|
| 94 |
-
gr.Markdown(
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
log_y=True,
|
| 18 |
)
|
| 19 |
|
| 20 |
+
tdp_fig_gpu = px.scatter(
|
| 21 |
merged_df,
|
| 22 |
x="Total TDP (W)",
|
| 23 |
y="$/Hour",
|
|
|
|
| 27 |
)
|
| 28 |
|
| 29 |
cost_fig = px.scatter(
|
| 30 |
+
merged_df,
|
| 31 |
+
x="GPU Total Cost",
|
| 32 |
+
y="$/Hour",
|
| 33 |
+
color="provider",
|
| 34 |
+
log_y=True,
|
| 35 |
+
log_x=True,
|
| 36 |
+
trendline="ols",
|
| 37 |
+
trendline_options=dict(log_x=True, log_y=True),
|
| 38 |
+
trendline_scope="overall",
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
cost_fig_gpu = px.scatter(
|
| 42 |
merged_df,
|
| 43 |
x="GPU Total Cost",
|
| 44 |
y="$/Hour",
|
|
|
|
| 81 |
gr.Markdown("TODO")
|
| 82 |
with gr.Row():
|
| 83 |
gr.Markdown("### Energy Data")
|
|
|
|
| 84 |
with gr.Column():
|
| 85 |
gr.Markdown(
|
| 86 |
"Double click the names of cloud providers to see the trend per company"
|
|
|
|
| 90 |
gr.Markdown(
|
| 91 |
"Double click the names of GPU models to see the trends per GPU"
|
| 92 |
)
|
| 93 |
+
plt1 = gr.Plot(tdp_fig_gpu)
|
| 94 |
with gr.Row():
|
| 95 |
+
gr.Markdown("### Cost Data")
|
| 96 |
+
with gr.Column():
|
| 97 |
+
gr.Markdown(
|
| 98 |
+
"Double click the names of cloud providers to see the trend per company"
|
|
|
|
|
|
|
|
|
|
| 99 |
)
|
| 100 |
+
plt1 = gr.Plot(cost_fig)
|
| 101 |
+
with gr.Column():
|
| 102 |
+
gr.Markdown(
|
| 103 |
+
"Double click the names of GPU models to see the trends per GPU"
|
| 104 |
+
)
|
| 105 |
+
plt1 = gr.Plot(cost_fig_gpu)
|
|
|
|
| 106 |
demo.launch()
|
| 107 |
+
|
| 108 |
+
# with gr.Row():
|
| 109 |
+
# with gr.Column(scale=1):
|
| 110 |
+
# org_choice = gr.Dropdown(
|
| 111 |
+
# options,
|
| 112 |
+
# value="",
|
| 113 |
+
# label="Organizations",
|
| 114 |
+
# info="Pick a characteristic to regenerate plot",
|
| 115 |
+
# interactive=True,
|
| 116 |
+
# )
|