Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def move():
|
|
24 |
temp_directory = tempfile.gettempdir()
|
25 |
|
26 |
# Specify the path of the file you want to move
|
27 |
-
file_path = '
|
28 |
|
29 |
# Construct the new path in the temporary directory with the same filename
|
30 |
new_path = os.path.join(temp_directory, os.path.basename(file_path))
|
@@ -89,7 +89,7 @@ with gr.Blocks(delete_cache=(5,10),
|
|
89 |
inp = gr.Textbox(placeholder="What is your name?")
|
90 |
out = gr.Image(type='filepath')
|
91 |
gr.FileExplorer(root="/data", label="Persistent storage")
|
92 |
-
with gr.Row():
|
93 |
with gr.Column():
|
94 |
btn = gr.Button("Generate temp files!")
|
95 |
btn1 = gr.Button("Generate local files!")
|
|
|
24 |
temp_directory = tempfile.gettempdir()
|
25 |
|
26 |
# Specify the path of the file you want to move
|
27 |
+
file_path = 'temp_dir/random_file1.txt'
|
28 |
|
29 |
# Construct the new path in the temporary directory with the same filename
|
30 |
new_path = os.path.join(temp_directory, os.path.basename(file_path))
|
|
|
89 |
inp = gr.Textbox(placeholder="What is your name?")
|
90 |
out = gr.Image(type='filepath')
|
91 |
gr.FileExplorer(root="/data", label="Persistent storage")
|
92 |
+
with gr.Row(equal_height=False):
|
93 |
with gr.Column():
|
94 |
btn = gr.Button("Generate temp files!")
|
95 |
btn1 = gr.Button("Generate local files!")
|