Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 19 |
global message_history # Made global variables so we can use them in the "predict_prompt" function.
|
| 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
|
| 23 |
|
| 24 |
new_id = str(uuid.uuid4()) # Id created by uuid.
|
| 25 |
print("Loading in user: " + new_id)
|
|
|
|
| 19 |
global message_history # Made global variables so we can use them in the "predict_prompt" function.
|
| 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 of this function but I dont know. This might be a leak for the user dictionary.
|
| 23 |
|
| 24 |
new_id = str(uuid.uuid4()) # Id created by uuid.
|
| 25 |
print("Loading in user: " + new_id)
|