Omnibus commited on
Commit
559ded7
1 Parent(s): c474d60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -8,9 +8,7 @@ platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/
8
  star = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/star.png'
9
  bomb = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/bomb.png'
10
  dude = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/dude.png'
11
- models=[
12
- gr.Interface.load("models/stabilityai/stable-diffusion-2-1-base",live=True)
13
- ]
14
 
15
 
16
  def game_fn(sky=sky,platform=platform,star=star,bomb=bomb,dude=dude):
@@ -32,9 +30,9 @@ def update_game():
32
 
33
  def dif_fn(inp):
34
  #dif = gr.Interface.load("models/stabilityai/stable-diffusion-2-1-base", live=True),
35
- dif = models[0]
36
  uid=uuid.uuid4()
37
- #output=diff.send_it(inp,5,1)
38
  output=dif(inp)
39
  print(output)
40
  outp=Image.open(output)
 
8
  star = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/star.png'
9
  bomb = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/bomb.png'
10
  dude = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/dude.png'
11
+
 
 
12
 
13
 
14
  def game_fn(sky=sky,platform=platform,star=star,bomb=bomb,dude=dude):
 
30
 
31
  def dif_fn(inp):
32
  #dif = gr.Interface.load("models/stabilityai/stable-diffusion-2-1-base", live=True),
33
+ #dif = models[0]
34
  uid=uuid.uuid4()
35
+ output=diff.send_it(inp,5,1)
36
  output=dif(inp)
37
  print(output)
38
  outp=Image.open(output)