Spaces:
Runtime error
Runtime error
gauravlochab
commited on
Commit
·
94f3ea0
1
Parent(s):
f75291d
chore:fix-visualization-bug
Browse files
app.py
CHANGED
@@ -338,7 +338,7 @@ def create_visualizations():
|
|
338 |
height=700,
|
339 |
)
|
340 |
|
341 |
-
return fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily
|
342 |
|
343 |
# Gradio interface
|
344 |
def dashboard():
|
@@ -347,26 +347,27 @@ def dashboard():
|
|
347 |
with gr.Tab("Transactions"):
|
348 |
fig_tx_chain = create_transcation_visualizations()
|
349 |
gr.Plot(fig_tx_chain)
|
|
|
|
|
350 |
#Fetch and display visualizations
|
351 |
with gr.Tab("Swaps"):
|
352 |
-
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily = create_visualizations()
|
353 |
gr.Plot(fig_swaps_chain)
|
354 |
|
355 |
with gr.Tab("Bridges"):
|
356 |
-
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily = create_visualizations()
|
357 |
gr.Plot(fig_bridges_chain)
|
358 |
|
359 |
with gr.Tab("Agents Week Over Week"):
|
360 |
-
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily = create_visualizations()
|
361 |
gr.Plot(fig_agents_daily)
|
362 |
|
363 |
with gr.Tab("Agents with Transactions Week Over Week"):
|
364 |
-
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily = create_visualizations()
|
365 |
gr.Plot(fig_agents_with_transactions_daily)
|
366 |
|
367 |
with gr.Tab("Total Value Locked"):
|
368 |
-
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily, fig_tvl = create_visualizations()
|
369 |
-
gr.Plot(fig_tvl)
|
370 |
|
371 |
return demo
|
372 |
|
|
|
338 |
height=700,
|
339 |
)
|
340 |
|
341 |
+
return fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily,fig_tvl
|
342 |
|
343 |
# Gradio interface
|
344 |
def dashboard():
|
|
|
347 |
with gr.Tab("Transactions"):
|
348 |
fig_tx_chain = create_transcation_visualizations()
|
349 |
gr.Plot(fig_tx_chain)
|
350 |
+
|
351 |
+
fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily,fig_tvl = create_visualizations()
|
352 |
#Fetch and display visualizations
|
353 |
with gr.Tab("Swaps"):
|
|
|
354 |
gr.Plot(fig_swaps_chain)
|
355 |
|
356 |
with gr.Tab("Bridges"):
|
357 |
+
#fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily,fig_tvl = create_visualizations()
|
358 |
gr.Plot(fig_bridges_chain)
|
359 |
|
360 |
with gr.Tab("Agents Week Over Week"):
|
361 |
+
#fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily,fig_tvl = create_visualizations()
|
362 |
gr.Plot(fig_agents_daily)
|
363 |
|
364 |
with gr.Tab("Agents with Transactions Week Over Week"):
|
365 |
+
#fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily,fig_tvl = create_visualizations()
|
366 |
gr.Plot(fig_agents_with_transactions_daily)
|
367 |
|
368 |
with gr.Tab("Total Value Locked"):
|
369 |
+
#fig_swaps_chain, fig_bridges_chain, fig_agents_daily, fig_agents_with_transactions_daily, fig_tvl,fig_tvl = create_visualizations()
|
370 |
+
gr.Plot(fig_tvl)
|
371 |
|
372 |
return demo
|
373 |
|