Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ def save_file(selected_file, thecomponent, content, lstf_dp):
|
|
| 89 |
return write_file(selected_file, thecomponent, content, lstf_dp)
|
| 90 |
|
| 91 |
def sove_file(selected_file, thecomponent, content, lstf_dp):
|
| 92 |
-
return write_file(f"{
|
| 93 |
|
| 94 |
def refresh_files(lstf_dp,lst_fls):
|
| 95 |
return gr.Dropdown(choices=list_files(files_list), value=None, type="value"), gr.Textbox(label=f"{str(os.getcwd())}/{str(thecomponent)}",value=lep(thecomponent),visible=True)
|
|
|
|
| 89 |
return write_file(selected_file, thecomponent, content, lstf_dp)
|
| 90 |
|
| 91 |
def sove_file(selected_file, thecomponent, content, lstf_dp):
|
| 92 |
+
return write_file(f"{thecomponent}/{selected_file}", thecomponent, content, lstf_dp)
|
| 93 |
|
| 94 |
def refresh_files(lstf_dp,lst_fls):
|
| 95 |
return gr.Dropdown(choices=list_files(files_list), value=None, type="value"), gr.Textbox(label=f"{str(os.getcwd())}/{str(thecomponent)}",value=lep(thecomponent),visible=True)
|