Rooni commited on
Commit
31d3b93
·
verified ·
1 Parent(s): 7dcc596

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -21,7 +21,8 @@ def send_data(text):
21
  data = text
22
  with open("data.txt", "w") as f:
23
  f.write(data)
24
- return "Данные успешно сохранены!"
 
25
 
26
  css = """
27
  footer {visibility: hidden !important;}
 
21
  data = text
22
  with open("data.txt", "w") as f:
23
  f.write(data)
24
+ raise gr.Info("Данные успешно сохранены!")
25
+ return text
26
 
27
  css = """
28
  footer {visibility: hidden !important;}