kavansaun commited on
Commit
095d7de
·
verified ·
1 Parent(s): 24c0c07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,6 +49,7 @@ def update_github_log(uid):
49
  error_msg = str(e).lower()
50
  # Catch invalid GitHub keys and raise a UI error
51
  if "bad_credentials" in error_msg or "bad credentials" in error_msg:
 
52
  gr.Warning("The GitHub API Key provided is invalid.")
53
  else:
54
  print("GitHub update failed:", e)
@@ -70,7 +71,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css="""footer {display:none !import
70
 
71
  # Creating user ID
72
  new_id = str(uuid.uuid4())
73
- print("Loading user:", new_id)
74
  user_dictionary[new_id] = []
75
 
76
  # INSTRUCTIONS, instructions must be in quotations, \n means a new line to the AI.
 
49
  error_msg = str(e).lower()
50
  # Catch invalid GitHub keys and raise a UI error
51
  if "bad_credentials" in error_msg or "bad credentials" in error_msg:
52
+ print("The GitHub API Key provided is invalid.")
53
  gr.Warning("The GitHub API Key provided is invalid.")
54
  else:
55
  print("GitHub update failed:", e)
 
71
 
72
  # Creating user ID
73
  new_id = str(uuid.uuid4())
74
+ print("\nLoading user:", new_id)
75
  user_dictionary[new_id] = []
76
 
77
  # INSTRUCTIONS, instructions must be in quotations, \n means a new line to the AI.