Rooni commited on
Commit
f836706
·
verified ·
1 Parent(s): 113590b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,7 +23,8 @@ def send_data(password, text):
23
  with open("data.txt", "w") as f:
24
  f.write(data)
25
  raise gr.Info("Данные успешно сохранены!")
26
- return get_data()
 
27
  else:
28
  raise gr.Error("Неверный пароль!")
29
 
 
23
  with open("data.txt", "w") as f:
24
  f.write(data)
25
  raise gr.Info("Данные успешно сохранены!")
26
+ with open("data.txt", "r") as l:
27
+ return l.read()
28
  else:
29
  raise gr.Error("Неверный пароль!")
30