Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
|
|
5 |
import uuid
|
6 |
import random
|
7 |
|
8 |
-
proc1=diff
|
9 |
-
proc2=diff
|
10 |
|
11 |
sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
|
12 |
platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
|
@@ -90,8 +90,8 @@ with gr.Blocks() as app:
|
|
90 |
with gr.Row():
|
91 |
btn=gr.Button("Make Image")
|
92 |
update_game=gr.Button("Use Image")
|
93 |
-
out_im_sky=gr.Image(type='filepath',
|
94 |
-
out_im_star=gr.Image(type='filepath',
|
95 |
out_sky_url=gr.Textbox(visible=False)
|
96 |
out_star_url=gr.Textbox(visible=False)
|
97 |
start_prompt=gr.Textbox(value="beautiful landscape, real, 8k",visible=False)
|
|
|
5 |
import uuid
|
6 |
import random
|
7 |
|
8 |
+
proc1=gr.Interface.load("spaces/Omnibus/fast-diff")
|
9 |
+
proc2=gr.Interface.load("spaces/Omnibus/fast-diff")
|
10 |
|
11 |
sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
|
12 |
platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
|
|
|
90 |
with gr.Row():
|
91 |
btn=gr.Button("Make Image")
|
92 |
update_game=gr.Button("Use Image")
|
93 |
+
out_im_sky=gr.Image(type='filepath',width=50)
|
94 |
+
out_im_star=gr.Image(type='filepath',width=50)
|
95 |
out_sky_url=gr.Textbox(visible=False)
|
96 |
out_star_url=gr.Textbox(visible=False)
|
97 |
start_prompt=gr.Textbox(value="beautiful landscape, real, 8k",visible=False)
|