From b0e1af09c8b071286266e7a4312291f31bf77be2 Mon Sep 17 00:00:00 2001 From: bmacer Date: Wed, 23 Oct 2024 14:40:55 -0400 Subject: [PATCH 1/2] replace spaces in api_key when starting loop --- computer-use-demo/computer_use_demo/streamlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-use-demo/computer_use_demo/streamlit.py b/computer-use-demo/computer_use_demo/streamlit.py index 6750029c..79591fc3 100644 --- a/computer-use-demo/computer_use_demo/streamlit.py +++ b/computer-use-demo/computer_use_demo/streamlit.py @@ -224,7 +224,7 @@ def _reset_api_provider(): tab=http_logs, response_state=st.session_state.responses, ), - api_key=st.session_state.api_key, + api_key=st.session_state.api_key.replace(" ", ""), only_n_most_recent_images=st.session_state.only_n_most_recent_images, ) From 1a57ab113a87b9a9e031d2fe102b142fbf9ef818 Mon Sep 17 00:00:00 2001 From: Brandon Macer Date: Thu, 24 Oct 2024 00:09:07 -0400 Subject: [PATCH 2/2] Update computer-use-demo/computer_use_demo/streamlit.py Co-authored-by: Zak Lee --- computer-use-demo/computer_use_demo/streamlit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computer-use-demo/computer_use_demo/streamlit.py b/computer-use-demo/computer_use_demo/streamlit.py index 79591fc3..89844795 100644 --- a/computer-use-demo/computer_use_demo/streamlit.py +++ b/computer-use-demo/computer_use_demo/streamlit.py @@ -224,7 +224,7 @@ def _reset_api_provider(): tab=http_logs, response_state=st.session_state.responses, ), - api_key=st.session_state.api_key.replace(" ", ""), + api_key=st.session_state.api_key.strip(), only_n_most_recent_images=st.session_state.only_n_most_recent_images, )