kavansaun commited on
Commit
88ad7d5
·
verified ·
1 Parent(s): 8778ee8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,8 +20,9 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
20
  global instructions
21
  global filename
22
  global user_dictionary # Pretty sure setting this as global is the only way to get it in the scope here but I dont know.
23
-
24
  new_id = str(uuid.uuid4()) # Id created by uuid.
 
25
  message_history = [] # Empty list for message history.
26
  user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
27
  instructions = 'First Rule: Act like a human. Second Rule: Choose to be accommodative or unaccommodative' # Change the message under the apostrophes to change the instructions you want the bot to inhibit.
 
20
  global instructions
21
  global filename
22
  global user_dictionary # Pretty sure setting this as global is the only way to get it in the scope here but I dont know.
23
+
24
  new_id = str(uuid.uuid4()) # Id created by uuid.
25
+ print("Loading in user: " + new_id)
26
  message_history = [] # Empty list for message history.
27
  user_dictionary.update({new_id:message_history}) # Add the new id and empty history into the dictionary.
28
  instructions = 'First Rule: Act like a human. Second Rule: Choose to be accommodative or unaccommodative' # Change the message under the apostrophes to change the instructions you want the bot to inhibit.