Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,7 @@ 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 |
-
def upd(x):
|
| 94 |
file = open(f'{uid}/{d_app}','w')
|
| 95 |
file.writelines(x)
|
| 96 |
file.close()
|
|
@@ -230,7 +230,7 @@ with gr.Blocks() as build:
|
|
| 230 |
def cyc(x):
|
| 231 |
return x,None
|
| 232 |
|
| 233 |
-
rm_but.click(upd,rm_t,[r_t])
|
| 234 |
|
| 235 |
f_btn.click(get_f,[r_name,ss_name,token],[a_files,z_files])
|
| 236 |
r_t.change(cyc,r_t,[m_t,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,d_app):
|
| 94 |
file = open(f'{uid}/{d_app}','w')
|
| 95 |
file.writelines(x)
|
| 96 |
file.close()
|
|
|
|
| 230 |
def cyc(x):
|
| 231 |
return x,None
|
| 232 |
|
| 233 |
+
rm_but.click(upd,[rm_t,d_app],[r_t])
|
| 234 |
|
| 235 |
f_btn.click(get_f,[r_name,ss_name,token],[a_files,z_files])
|
| 236 |
r_t.change(cyc,r_t,[m_t,files])
|