Update app.py
Browse files
app.py
CHANGED
|
@@ -75,13 +75,11 @@ def install_system_packages(packages_content, progress=gr.Progress()):
|
|
| 75 |
if line.strip() and not line.strip().startswith('#')]
|
| 76 |
|
| 77 |
if packages_list:
|
| 78 |
-
return f"""
|
| 79 |
-
❌ System packages cannot be installed in Hugging Face Spaces:
|
| 80 |
{', '.join(packages_list)}
|
| 81 |
|
| 82 |
ℹ️ HF Spaces runs in a containerized environment without sudo access.
|
| 83 |
-
These packages need to be pre-installed in the Docker image or available as Python packages.
|
| 84 |
-
"""
|
| 85 |
return "No system packages specified."
|
| 86 |
|
| 87 |
def find_compiled_binary(output_dir, output_filename):
|
|
@@ -307,8 +305,7 @@ def compile_with_nuitka(code, requirements, packages, compilation_mode, output_e
|
|
| 307 |
current_python = get_current_python_version()
|
| 308 |
|
| 309 |
# Add system info to result
|
| 310 |
-
result_summary = f"""
|
| 311 |
-
# ✅ Compilation Successful!
|
| 312 |
|
| 313 |
## Compilation Details:
|
| 314 |
- **Mode**: {mode_name}
|
|
|
|
| 75 |
if line.strip() and not line.strip().startswith('#')]
|
| 76 |
|
| 77 |
if packages_list:
|
| 78 |
+
return f"""❌ System packages cannot be installed in Hugging Face Spaces:
|
|
|
|
| 79 |
{', '.join(packages_list)}
|
| 80 |
|
| 81 |
ℹ️ HF Spaces runs in a containerized environment without sudo access.
|
| 82 |
+
These packages need to be pre-installed in the Docker image or available as Python packages."""
|
|
|
|
| 83 |
return "No system packages specified."
|
| 84 |
|
| 85 |
def find_compiled_binary(output_dir, output_filename):
|
|
|
|
| 305 |
current_python = get_current_python_version()
|
| 306 |
|
| 307 |
# Add system info to result
|
| 308 |
+
result_summary = f"""# ✅ Compilation Successful!
|
|
|
|
| 309 |
|
| 310 |
## Compilation Details:
|
| 311 |
- **Mode**: {mode_name}
|