Spaces:
Runtime error
Runtime error
Commit
·
02d0fb2
1
Parent(s):
c46c1c7
app.py
CHANGED
@@ -50,8 +50,15 @@ def anim(f_promt, s_promt, stability_key):
|
|
50 |
yield file_path
|
51 |
|
52 |
def file():
|
|
|
53 |
app_dir = os.getcwd()
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
gr.Markdown("Stability Animation")
|
|
|
50 |
yield file_path
|
51 |
|
52 |
def file():
|
53 |
+
# Get current working directory
|
54 |
app_dir = os.getcwd()
|
55 |
+
|
56 |
+
# Set output folder for files
|
57 |
+
output_dir = os.path.join(app_dir, "moutput")
|
58 |
+
|
59 |
+
if not os.path.exists(output_dir):
|
60 |
+
os.makedirs(output_dir)
|
61 |
+
print("Created folder at:"+output_dir)
|
62 |
|
63 |
with gr.Blocks() as demo:
|
64 |
gr.Markdown("Stability Animation")
|