Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,6 @@ from kokoro import KModel, KPipeline
|
|
15 |
import soundfile as sf
|
16 |
import math
|
17 |
|
18 |
-
@spaces.GPU(duration=180) # Keep GPU active for 5 min
|
19 |
-
def hold_gpu():
|
20 |
-
while True:
|
21 |
-
time.sleep(10) # Keeps function running to hold the GPU
|
22 |
-
hold_gpu()
|
23 |
-
|
24 |
def clear_memory():
|
25 |
"""Helper function to clear both CUDA and system memory, safe for Spaces environment"""
|
26 |
gc.collect()
|
@@ -703,6 +697,9 @@ def create_interface():
|
|
703 |
to help you understand the technology being used.
|
704 |
|
705 |
Let's create something magical! β¨
|
|
|
|
|
|
|
706 |
""")
|
707 |
|
708 |
# Step 1: Generate Landscape
|
|
|
15 |
import soundfile as sf
|
16 |
import math
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
def clear_memory():
|
19 |
"""Helper function to clear both CUDA and system memory, safe for Spaces environment"""
|
20 |
gc.collect()
|
|
|
697 |
to help you understand the technology being used.
|
698 |
|
699 |
Let's create something magical! β¨
|
700 |
+
|
701 |
+
## π [Open in Google Colab](<{https://colab.research.google.com/drive/18-4frRwaMxxqJrRjiXh1Q069R77INMeA?usp=sharing}>) π
|
702 |
+
|
703 |
""")
|
704 |
|
705 |
# Step 1: Generate Landscape
|