Omnibus commited on
Commit
83300eb
1 Parent(s): c97e511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -1,4 +1,8 @@
1
  import gradio as gr
 
 
 
 
2
 
3
  sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
4
  platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
@@ -18,6 +22,19 @@ html_mod=f"""
18
  ></iframe>
19
  </div>"""
20
 
 
 
 
 
 
 
21
  with gr.Blocks() as app:
 
 
 
 
 
 
22
  gr.HTML(html_mod)
 
23
  app.launch()
 
1
  import gradio as gr
2
+ import diff
3
+
4
+ dif = diff.SendIt()
5
+
6
 
7
  sky = "https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/sky.png"
8
  platform = 'https://huggingface.co/spaces/Omnibus/game-test/resolve/main/assets/platform.png'
 
22
  ></iframe>
23
  </div>"""
24
 
25
+ def dif_fn(inp):
26
+ output=dif(inp)
27
+ return output[0]
28
+
29
+
30
+
31
  with gr.Blocks() as app:
32
+ with gr.Row():
33
+ with gr.Column():
34
+ prompt=gr.Textbox()
35
+ btn=gr.Button()
36
+ out_im=gr.Image()
37
+
38
  gr.HTML(html_mod)
39
+ btn.click(dif_fn,prompt,out_im)
40
  app.launch()