Upload folder using huggingface_hub
Browse files
streamlit
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# Step 1: Create .streamlit directory inside your project directory
|
| 4 |
-
os.makedirs("
|
| 5 |
|
| 6 |
# Step 2: Write the config.toml file
|
| 7 |
config_content = """
|
|
@@ -13,7 +13,7 @@ port = 8501
|
|
| 13 |
address = "0.0.0.0"
|
| 14 |
"""
|
| 15 |
|
| 16 |
-
with open("
|
| 17 |
f.write(config_content)
|
| 18 |
|
| 19 |
-
print("✅ .streamlit/config.toml file created inside '
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# Step 1: Create .streamlit directory inside your project directory
|
| 4 |
+
os.makedirs("deployment_files/.streamlit", exist_ok=True)
|
| 5 |
|
| 6 |
# Step 2: Write the config.toml file
|
| 7 |
config_content = """
|
|
|
|
| 13 |
address = "0.0.0.0"
|
| 14 |
"""
|
| 15 |
|
| 16 |
+
with open("deployment_files/.streamlit/config.toml", "w") as f:
|
| 17 |
f.write(config_content)
|
| 18 |
|
| 19 |
+
print("✅ .streamlit/config.toml file created inside 'deployment_files' directory.")
|