Update app.py
Browse files
app.py
CHANGED
|
@@ -223,8 +223,11 @@ with gr.Blocks() as build:
|
|
| 223 |
|
| 224 |
def cyc(x):
|
| 225 |
return x,None
|
| 226 |
-
|
| 227 |
-
|
|
|
|
|
|
|
|
|
|
| 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])
|