Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
| 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.
|