fix
Browse files
app.py
CHANGED
@@ -164,12 +164,12 @@ with demo:
|
|
164 |
refresh_button = gr.Button("Refresh Data")
|
165 |
with gr.Column():
|
166 |
latest_data_label = gr.Label(
|
167 |
-
value=f"Last
|
168 |
)
|
169 |
|
170 |
def refresh_callback():
|
171 |
refresh_data()
|
172 |
-
latest_data_label.value = f"Last
|
173 |
return latest_data_label.value
|
174 |
|
175 |
refresh_button.click(refresh_callback, outputs=latest_data_label)
|
|
|
164 |
refresh_button = gr.Button("Refresh Data")
|
165 |
with gr.Column():
|
166 |
latest_data_label = gr.Label(
|
167 |
+
value=f"Last data point: {trades_df['creation_timestamp'].max()}"
|
168 |
)
|
169 |
|
170 |
def refresh_callback():
|
171 |
refresh_data()
|
172 |
+
latest_data_label.value = f"Last data point: {trades_df['creation_timestamp'].max()}"
|
173 |
return latest_data_label.value
|
174 |
|
175 |
refresh_button.click(refresh_callback, outputs=latest_data_label)
|