Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ os.makedirs(ckptdir, exist_ok=True)
|
|
26 |
|
27 |
|
28 |
os.environ['GRADIO_TEMP_DIR']="/home/user/app/temp"
|
|
|
29 |
|
30 |
mean_path = hf_hub_download(
|
31 |
repo_id="EvanTHU/MotionCLR",
|
@@ -58,7 +59,6 @@ opt_path = hf_hub_download(
|
|
58 |
|
59 |
|
60 |
os.makedirs("/home/user/app/temp", exist_ok=True)
|
61 |
-
os.environ['GRADIO_TEMP_DIR'] = '/home/user/app/temp'
|
62 |
|
63 |
def generate_md5(input_string):
|
64 |
# Encode the string and compute the MD5 hash
|
@@ -113,7 +113,6 @@ HEAD = ("""<div>
|
|
113 |
|
114 |
|
115 |
edit_config = yaml_to_box('options/edit.yaml')
|
116 |
-
os.environ['GRADIO_TEMP_DIR'] = '/home/user/app/temp'
|
117 |
CSS = """
|
118 |
.retrieved_video {
|
119 |
position: relative;
|
|
|
26 |
|
27 |
|
28 |
os.environ['GRADIO_TEMP_DIR']="/home/user/app/temp"
|
29 |
+
os.environ['GRADIO_ALLOWED_PATHS']="/home/user/app/temp"
|
30 |
|
31 |
mean_path = hf_hub_download(
|
32 |
repo_id="EvanTHU/MotionCLR",
|
|
|
59 |
|
60 |
|
61 |
os.makedirs("/home/user/app/temp", exist_ok=True)
|
|
|
62 |
|
63 |
def generate_md5(input_string):
|
64 |
# Encode the string and compute the MD5 hash
|
|
|
113 |
|
114 |
|
115 |
edit_config = yaml_to_box('options/edit.yaml')
|
|
|
116 |
CSS = """
|
117 |
.retrieved_video {
|
118 |
position: relative;
|