QAway-to commited on
Commit
d2b7cd0
·
1 Parent(s): 81825fb

without k_metrics

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -69,6 +69,9 @@ def handle_chat_streaming(user_input):
69
  partial += delta
70
  yield partial
71
 
 
 
 
72
 
73
  # Gradio интерфейс
74
  with gr.Blocks() as demo:
@@ -79,10 +82,9 @@ with gr.Blocks() as demo:
79
  analyze_button = gr.Button("🔍 Проанализировать")
80
  output_box = gr.Textbox(label="📈 Результат анализа", lines=15)
81
  analyze_button.click(
82
- fn=lambda text: analyze_portfolio_streaming(text, client),
83
  inputs=portfolio_input,
84
- outputs=output_box
85
-
86
  )
87
 
88
  with gr.Tab("⚖️ Сравнение"):
 
69
  partial += delta
70
  yield partial
71
 
72
+ def analyze_with_client(text):
73
+ yield from analyze_portfolio_streaming(text, client)
74
+
75
 
76
  # Gradio интерфейс
77
  with gr.Blocks() as demo:
 
82
  analyze_button = gr.Button("🔍 Проанализировать")
83
  output_box = gr.Textbox(label="📈 Результат анализа", lines=15)
84
  analyze_button.click(
85
+ fn=analyze_with_client,
86
  inputs=portfolio_input,
87
+ outputs=output_box # Textbox
 
88
  )
89
 
90
  with gr.Tab("⚖️ Сравнение"):