xp3857 commited on
Commit
5dd7b2f
·
1 Parent(s): 97c1910

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -90,7 +90,10 @@ def load_space_d(r_name,s_name,d_app):
90
  o_file = open(f'{uid}/mod_d_{d_app}','w')
91
  o_file.writelines(r.text)
92
  return r.text
93
-
 
 
 
94
  def repl(rs,rt,d_app):
95
  file = open(f'{uid}/{d_app}','r')
96
  r_file = file.read()
@@ -223,10 +226,7 @@ with gr.Blocks() as build:
223
 
224
  def cyc(x):
225
  return x,None
226
- def upd(x):
227
- o_file = open(f'{uid}/{d_app}','w')
228
- o_file = o_file.write(x)
229
- return x
230
  rm_but.click(upd,rm_t,[r_t])
231
 
232
  f_btn.click(get_f,[r_name,ss_name,token],[a_files,z_files])
 
90
  o_file = open(f'{uid}/mod_d_{d_app}','w')
91
  o_file.writelines(r.text)
92
  return r.text
93
+ def upd(x):
94
+ o_file = open(f'{uid}/{d_app}','w')
95
+ o_file = o_file.write(x)
96
+ return x
97
  def repl(rs,rt,d_app):
98
  file = open(f'{uid}/{d_app}','r')
99
  r_file = file.read()
 
226
 
227
  def cyc(x):
228
  return x,None
229
+
 
 
 
230
  rm_but.click(upd,rm_t,[r_t])
231
 
232
  f_btn.click(get_f,[r_name,ss_name,token],[a_files,z_files])