Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,9 +67,12 @@ with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}
|
|
| 67 |
content += ('Bot: ' + user_dictionary[new_id][i]["content"] + '\n')
|
| 68 |
else:
|
| 69 |
content += ''
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
| 73 |
#updating the repository with the entire message history
|
| 74 |
file = repo.get_contents(filename)
|
| 75 |
repo.update_file(file.path, commit_message, content, file.sha)
|
|
|
|
| 67 |
content += ('Bot: ' + user_dictionary[new_id][i]["content"] + '\n')
|
| 68 |
else:
|
| 69 |
content += ''
|
| 70 |
+
|
| 71 |
+
user_id.change(input_user_id,inputs=[user_id])
|
| 72 |
+
def input_user_id(user_id):
|
| 73 |
+
print(user_id)
|
| 74 |
+
return user_id
|
| 75 |
+
|
| 76 |
#updating the repository with the entire message history
|
| 77 |
file = repo.get_contents(filename)
|
| 78 |
repo.update_file(file.path, commit_message, content, file.sha)
|