Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,12 +45,12 @@ with gr.Blocks() as demo:
|
|
45 |
|
46 |
def summarize_and_recommend_process():
|
47 |
# sn, r = ps.summarize_and_recommend()
|
48 |
-
sn, r = summarize_and_recommend()
|
49 |
return gr.update(visible=True, value=sn), gr.update(visible=True, value=r)
|
50 |
|
51 |
process_button = gr.Button("Generate Session Notes & Recommendations")
|
52 |
clear = gr.ClearButton(components=[user_input, chatbox, emotions, summary_notes, recommendations], value="Clear console")
|
53 |
-
process_button.click(summarize_and_recommend_process, inputs=
|
54 |
|
55 |
|
56 |
demo.launch(debug=True, share=True)
|
|
|
45 |
|
46 |
def summarize_and_recommend_process():
|
47 |
# sn, r = ps.summarize_and_recommend()
|
48 |
+
sn, r = summarize_and_recommend(therapy_session_conversation)
|
49 |
return gr.update(visible=True, value=sn), gr.update(visible=True, value=r)
|
50 |
|
51 |
process_button = gr.Button("Generate Session Notes & Recommendations")
|
52 |
clear = gr.ClearButton(components=[user_input, chatbox, emotions, summary_notes, recommendations], value="Clear console")
|
53 |
+
process_button.click(summarize_and_recommend_process, inputs=None, outputs=[summary_notes, recommendations])
|
54 |
|
55 |
|
56 |
demo.launch(debug=True, share=True)
|