Omnibus commited on
Commit
9358b29
1 Parent(s): c368305

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -3,13 +3,15 @@ import diff
3
  import os
4
  from PIL import Image
5
  import uuid
6
- dif = gr.Interface.load("models/stabilityai/stable-diffusion-2-1-base", live=True),
7
- print (dif)
8
  sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
9
  platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
10
  star = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/star.png'
11
  bomb = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/bomb.png'
12
  dude = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/dude.png'
 
 
 
 
13
 
14
  def game_fn(sky=sky,platform=platform,star=star,bomb=bomb,dude=dude):
15
  html_mod=f"""
@@ -29,7 +31,8 @@ def update_game():
29
  return game_fn(sky=sky)
30
 
31
  def dif_fn(inp):
32
-
 
33
  uid=uuid.uuid4()
34
  #output=diff.send_it(inp,5,1)
35
  output=dif(inp)
 
3
  import os
4
  from PIL import Image
5
  import uuid
 
 
6
  sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
7
  platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
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):
17
  html_mod=f"""
 
31
  return game_fn(sky=sky)
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)