xp3857 commited on
Commit
9464b6f
·
1 Parent(s): 6f25544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -223,8 +223,11 @@ with gr.Blocks() as build:
223
 
224
  def cyc(x):
225
  return x,None
226
-
227
- rm_but.click(cyc,rm_t,[r_t,mm_t])
 
 
 
228
 
229
  f_btn.click(get_f,[r_name,ss_name,token],[a_files,z_files])
230
  r_t.change(cyc,r_t,[m_t,files])
 
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])
233
  r_t.change(cyc,r_t,[m_t,files])