prithivMLmods commited on
Commit
eada7e0
1 Parent(s): 74fb0c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import gradio as gr
2
  import numpy as np
3
  import random
4
-
5
  import spaces
6
  from diffusers import DiffusionPipeline
7
  import torch
@@ -47,7 +46,7 @@ style_list = [
47
  STYLE_NAMES = [style["name"] for style in style_list]
48
  DEFAULT_STYLE_NAME = STYLE_NAMES[0]
49
 
50
- @spaces.GPU
51
  def infer(
52
  prompt,
53
  negative_prompt="",
@@ -200,5 +199,4 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
200
  )
201
 
202
  if __name__ == "__main__":
203
- demo.launch()
204
-
 
1
  import gradio as gr
2
  import numpy as np
3
  import random
 
4
  import spaces
5
  from diffusers import DiffusionPipeline
6
  import torch
 
46
  STYLE_NAMES = [style["name"] for style in style_list]
47
  DEFAULT_STYLE_NAME = STYLE_NAMES[0]
48
 
49
+ @spaces.GPU(duration=60)
50
  def infer(
51
  prompt,
52
  negative_prompt="",
 
199
  )
200
 
201
  if __name__ == "__main__":
202
+ demo.launch()