Linh Vuu commited on
Commit
963bce0
1 Parent(s): 9d01ee5

add run-out-energy message

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -23,7 +23,6 @@ thread_id = thread.id
23
 
24
  def wait_for_run_completion(client, thread_id, run_id, sleep_interval=5):
25
  """
26
-
27
  Waits for a run to complete and prints the elapsed time.:param client: The OpenAI client object.
28
  :param thread_id: The ID of the thread.
29
  :param run_id: The ID of the run.
@@ -55,6 +54,10 @@ def main():
55
  # Streamlit interface
56
  st.title("Personal trainer")
57
 
 
 
 
 
58
  with st.form(key="user_input_form"):
59
  question = st.text_input("Enter question:")
60
  submit_button = st.form_submit_button(label="Response to my question above")
 
23
 
24
  def wait_for_run_completion(client, thread_id, run_id, sleep_interval=5):
25
  """
 
26
  Waits for a run to complete and prints the elapsed time.:param client: The OpenAI client object.
27
  :param thread_id: The ID of the thread.
28
  :param run_id: The ID of the run.
 
54
  # Streamlit interface
55
  st.title("Personal trainer")
56
 
57
+ # Note that API key's running out of budget
58
+ contact_url = "https://www.linkedin.com/in/linhvuu"
59
+ st.write("I am running out of energy. Please contact [my assistant](%s) to wake me up." % contact_url)
60
+
61
  with st.form(key="user_input_form"):
62
  question = st.text_input("Enter question:")
63
  submit_button = st.form_submit_button(label="Response to my question above")