kavansaun commited on
Commit
bc1c7fd
·
verified ·
1 Parent(s): 8f2100f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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
- print([user_id])
71
- print("session: "+ new_id)
72
- print(content)
 
 
 
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)