cyberosa
commited on
Commit
·
b7f11f9
1
Parent(s):
e22f08e
fix title
Browse files- app.py +2 -1
- tabs/tokens_votes_dist.py +0 -2
app.py
CHANGED
@@ -87,11 +87,12 @@ with demo:
|
|
87 |
gr.Markdown(f"Market id = {best_market_id}")
|
88 |
with gr.Row():
|
89 |
with gr.Column(scale=1, min_width=300):
|
90 |
-
|
91 |
best_market_tokens_dist = get_based_tokens_distribution(
|
92 |
best_market_id, markets_data
|
93 |
)
|
94 |
with gr.Column(scale=2, min_width=300):
|
|
|
95 |
best_market_votes_dist = get_based_votes_distribution(
|
96 |
best_market_id, markets_data
|
97 |
)
|
|
|
87 |
gr.Markdown(f"Market id = {best_market_id}")
|
88 |
with gr.Row():
|
89 |
with gr.Column(scale=1, min_width=300):
|
90 |
+
gr.Markdown("# Evolution of outcomes probability based on tokens")
|
91 |
best_market_tokens_dist = get_based_tokens_distribution(
|
92 |
best_market_id, markets_data
|
93 |
)
|
94 |
with gr.Column(scale=2, min_width=300):
|
95 |
+
gr.Markdown("# Evolution of outcomes probability based on votes")
|
96 |
best_market_votes_dist = get_based_votes_distribution(
|
97 |
best_market_id, markets_data
|
98 |
)
|
tabs/tokens_votes_dist.py
CHANGED
@@ -31,7 +31,6 @@ def get_based_tokens_distribution(market_id: str, all_markets: pd.DataFrame):
|
|
31 |
loc="upper left",
|
32 |
labels=[first_outcome, second_outcome],
|
33 |
)
|
34 |
-
ax.title = "Outcomes probability over time based on tokens distributions"
|
35 |
return gr.Plot(value=ax.figure)
|
36 |
|
37 |
|
@@ -58,5 +57,4 @@ def get_based_votes_distribution(market_id: str, all_markets: pd.DataFrame):
|
|
58 |
loc="upper left",
|
59 |
labels=[first_outcome, second_outcome],
|
60 |
)
|
61 |
-
ax.title = "Outcomes probability over time based on votes distributions"
|
62 |
return gr.Plot(value=ax.figure)
|
|
|
31 |
loc="upper left",
|
32 |
labels=[first_outcome, second_outcome],
|
33 |
)
|
|
|
34 |
return gr.Plot(value=ax.figure)
|
35 |
|
36 |
|
|
|
57 |
loc="upper left",
|
58 |
labels=[first_outcome, second_outcome],
|
59 |
)
|
|
|
60 |
return gr.Plot(value=ax.figure)
|