multimodalart HF staff commited on
Commit
46fd059
1 Parent(s): fc5508e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import logging
8
  import math
9
  from tqdm import tqdm
10
  import time
 
11
 
12
  #logging.basicConfig(level=logging.DEBUG)
13
 
@@ -27,7 +28,7 @@ def update_selection(selected_state: gr.SelectData):
27
  selected_state
28
  )
29
 
30
-
31
  def run_lora(prompt, selected_state, progress=gr.Progress(track_tqdm=True)):
32
  logging.debug(f"Inside run_lora, selected_state: {selected_state}")
33
  if not selected_state:
 
8
  import math
9
  from tqdm import tqdm
10
  import time
11
+ import spaces
12
 
13
  #logging.basicConfig(level=logging.DEBUG)
14
 
 
28
  selected_state
29
  )
30
 
31
+ @spaces.GPU
32
  def run_lora(prompt, selected_state, progress=gr.Progress(track_tqdm=True)):
33
  logging.debug(f"Inside run_lora, selected_state: {selected_state}")
34
  if not selected_state: