Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ from pathlib import Path
|
|
| 18 |
def install_dependencies_gradio():
|
| 19 |
"""Installs the necessary dependencies for the Gradio app. Run this ONCE."""
|
| 20 |
try:
|
| 21 |
-
|
| 22 |
print("Dependencies installed successfully.")
|
| 23 |
except Exception as e:
|
| 24 |
print(f"Error installing dependencies: {e}")
|
|
|
|
| 18 |
def install_dependencies_gradio():
|
| 19 |
"""Installs the necessary dependencies for the Gradio app. Run this ONCE."""
|
| 20 |
try:
|
| 21 |
+
pip install -U torch diffusers transformers accelerate safetensors huggingface_hub xformers
|
| 22 |
print("Dependencies installed successfully.")
|
| 23 |
except Exception as e:
|
| 24 |
print(f"Error installing dependencies: {e}")
|