Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,15 @@ import secrets
|
|
| 9 |
from thaTube import thaTube
|
| 10 |
|
| 11 |
folders = [{'out':'output'},
|
| 12 |
-
|
|
|
|
| 13 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
def generate_random_key():
|
| 15 |
return secrets.token_hex(8) # Generates a 16-character hexadecimal string
|
| 16 |
|
|
@@ -22,10 +29,6 @@ def load_yaml_file(file_path):
|
|
| 22 |
# Initialize app configuration
|
| 23 |
st.set_page_config(page_title="Multi-tab Image App", layout="wide")
|
| 24 |
|
| 25 |
-
# Output folder
|
| 26 |
-
output_folder = "output"
|
| 27 |
-
os.makedirs(output_folder, exist_ok=True)
|
| 28 |
-
|
| 29 |
# Placeholder for the image display
|
| 30 |
image_placeholder = st.empty()
|
| 31 |
|
|
|
|
| 9 |
from thaTube import thaTube
|
| 10 |
|
| 11 |
folders = [{'out':'output'},
|
| 12 |
+
{'mp3':'mp3'},
|
| 13 |
+
{'assets':'assets'}
|
| 14 |
]
|
| 15 |
+
|
| 16 |
+
# Output folder
|
| 17 |
+
output_folder = "output"
|
| 18 |
+
for folder in folders.keys():
|
| 19 |
+
os.makedirs(folders['folder'], exist_ok=True)
|
| 20 |
+
|
| 21 |
def generate_random_key():
|
| 22 |
return secrets.token_hex(8) # Generates a 16-character hexadecimal string
|
| 23 |
|
|
|
|
| 29 |
# Initialize app configuration
|
| 30 |
st.set_page_config(page_title="Multi-tab Image App", layout="wide")
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Placeholder for the image display
|
| 33 |
image_placeholder = st.empty()
|
| 34 |
|