root commited on
Commit
c6e16ba
·
1 Parent(s): 01f9743

update app.py for zerogpu

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  # dream_app.py
 
2
  import torch
3
  import numpy as np
4
  import gradio as gr
@@ -209,7 +210,7 @@ def apply_constraints_to_state(
209
 
210
  # --- Core Generation Logic with Live Visualization ---
211
 
212
-
213
  @torch.no_grad()
214
  def infilling_dream(
215
  prefix: str,
 
1
  # dream_app.py
2
+ import spaces
3
  import torch
4
  import numpy as np
5
  import gradio as gr
 
210
 
211
  # --- Core Generation Logic with Live Visualization ---
212
 
213
+ @spaces.GPU
214
  @torch.no_grad()
215
  def infilling_dream(
216
  prefix: str,