Prof-Hunt commited on
Commit
15086d5
Β·
verified Β·
1 Parent(s): 2dc7372

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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