Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,6 @@ def call_blaxel_backend(user_problem, google_key, anthropic_key, sambanova_key,
|
|
| 78 |
yield {
|
| 79 |
status_output: full_log + "\n✅ Done!",
|
| 80 |
final_text_output: final_json.get("text"),
|
| 81 |
-
final_audio_output: final_json.get("audio"),
|
| 82 |
final_json_log: log_data,
|
| 83 |
progress_plot: create_progress_chart(log_data),
|
| 84 |
calibration_data: create_calibration_table(log_data),
|
|
@@ -123,7 +122,6 @@ with gr.Blocks() as demo:
|
|
| 123 |
cost_display = gr.Markdown()
|
| 124 |
with gr.TabItem("Result"):
|
| 125 |
final_text_output = gr.Markdown()
|
| 126 |
-
final_audio_output = gr.Audio()
|
| 127 |
with gr.TabItem("Logs"):
|
| 128 |
status_output = gr.Textbox(lines=10, autoscroll=True)
|
| 129 |
final_json_log = gr.JSON()
|
|
@@ -131,7 +129,7 @@ with gr.Blocks() as demo:
|
|
| 131 |
submit_button.click(
|
| 132 |
fn=call_blaxel_backend,
|
| 133 |
inputs=[problem_input, google_key_input, anthropic_key_input, sambanova_key_input, openai_key_input, nebius_key_input],
|
| 134 |
-
outputs=[status_output, final_text_output,
|
| 135 |
)
|
| 136 |
|
| 137 |
demo.launch()
|
|
|
|
| 78 |
yield {
|
| 79 |
status_output: full_log + "\n✅ Done!",
|
| 80 |
final_text_output: final_json.get("text"),
|
|
|
|
| 81 |
final_json_log: log_data,
|
| 82 |
progress_plot: create_progress_chart(log_data),
|
| 83 |
calibration_data: create_calibration_table(log_data),
|
|
|
|
| 122 |
cost_display = gr.Markdown()
|
| 123 |
with gr.TabItem("Result"):
|
| 124 |
final_text_output = gr.Markdown()
|
|
|
|
| 125 |
with gr.TabItem("Logs"):
|
| 126 |
status_output = gr.Textbox(lines=10, autoscroll=True)
|
| 127 |
final_json_log = gr.JSON()
|
|
|
|
| 129 |
submit_button.click(
|
| 130 |
fn=call_blaxel_backend,
|
| 131 |
inputs=[problem_input, google_key_input, anthropic_key_input, sambanova_key_input, openai_key_input, nebius_key_input],
|
| 132 |
+
outputs=[status_output, final_text_output, final_json_log, progress_plot, calibration_data, cost_display]
|
| 133 |
)
|
| 134 |
|
| 135 |
demo.launch()
|