Spaces:
Sleeping
Sleeping
QAway-to
commited on
Commit
·
bdea24d
1
Parent(s):
4badfda
model change
Browse files
app.py
CHANGED
|
@@ -75,13 +75,12 @@ with gr.Blocks() as demo:
|
|
| 75 |
|
| 76 |
chat_button.click(fn=handle_chat_streaming, inputs=chat_input, outputs=chat_output)
|
| 77 |
|
| 78 |
-
with gr.Tab("📋
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
table_button.click(fn=show_metrics_table, inputs=table_input, outputs=table_output)
|
| 84 |
|
|
|
|
| 85 |
|
| 86 |
if __name__ == "__main__":
|
| 87 |
demo.launch()
|
|
|
|
| 75 |
|
| 76 |
chat_button.click(fn=handle_chat_streaming, inputs=chat_input, outputs=chat_output)
|
| 77 |
|
| 78 |
+
with gr.Tab("📋 Таблица метрик"):
|
| 79 |
+
metrics_input = gr.Textbox(label="Введите portfolioId", placeholder="ea856c1b-...")
|
| 80 |
+
metrics_button = gr.Button("📥 Показать метрики")
|
| 81 |
+
metrics_output = gr.Dataframe(label="📊 Метрики портфеля", wrap=True)
|
|
|
|
|
|
|
| 82 |
|
| 83 |
+
metrics_button.click(fn=show_metrics_table, inputs=metrics_input, outputs=metrics_output)
|
| 84 |
|
| 85 |
if __name__ == "__main__":
|
| 86 |
demo.launch()
|