Spaces:
Running
on
L40S
Running
on
L40S
add
Browse files
app.py
CHANGED
|
@@ -499,5 +499,11 @@ with gr.Blocks(title="MusicGen Large - Music Generation") as demo:
|
|
| 499 |
""")
|
| 500 |
|
| 501 |
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 502 |
cleanup_temp_files()
|
| 503 |
demo.launch()
|
|
|
|
| 499 |
""")
|
| 500 |
|
| 501 |
if __name__ == "__main__":
|
| 502 |
+
try:
|
| 503 |
+
subprocess.run(['bash', 'setup.sh.sh'], check=True)
|
| 504 |
+
except subprocess.CalledProcessError as e:
|
| 505 |
+
print(f"Error: {e}")
|
| 506 |
+
except FileNotFoundError:
|
| 507 |
+
print("Shell script not found")
|
| 508 |
cleanup_temp_files()
|
| 509 |
demo.launch()
|
setup.sh
CHANGED
|
@@ -6,3 +6,5 @@ pip install flash-attn==2.7.3 --no-build-isolation
|
|
| 6 |
|
| 7 |
# Uninstall apex if it exists (as in your original script)
|
| 8 |
pip uninstall apex -y || true
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Uninstall apex if it exists (as in your original script)
|
| 8 |
pip uninstall apex -y || true
|
| 9 |
+
|
| 10 |
+
thestage config set --api-token eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI1ODFmMDdlZi1kN2U0LTQ2ZTUtODIxZS0xNDBhNmQ4YjJkZWIiLCJzdWIiOiJhcGlVc2VyIiwidXNlcklkIjoyMiwiY2xpZW50SWQiOjMzLCJ0b2tlblR5cGUiOiJhY2Nlc3MiLCJleHAiOjE3NzkxOTc2NDh9.lwb44HoHP7n9WZ7ZUux7Bw9RqsQCwKqgvWvdizMnfRE
|