lnyan commited on
Commit
77c81f7
1 Parent(s): 0157bcd

Update index

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. index.html +5 -12
app.py CHANGED
@@ -788,9 +788,7 @@ with blocks as demo:
788
  # title
789
  title = gr.Markdown(
790
  """
791
- **stablediffusion-infinity**: Outpainting with Stable Diffusion on an infinite canvas: [https://github.com/lkwq007/stablediffusion-infinity](https://github.com/lkwq007/stablediffusion-infinity)
792
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb)
793
- [![Setup Locally](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Setup-Locally-blue)](https://github.com/lkwq007/stablediffusion-infinity/blob/master/docs/setup_guide.md)
794
  """,
795
  elem_id="markdown",
796
  )
 
788
  # title
789
  title = gr.Markdown(
790
  """
791
+ **stablediffusion-infinity**: Outpainting with Stable Diffusion on an infinite canvas: [https://github.com/lkwq007/stablediffusion-infinity](https://github.com/lkwq007/stablediffusion-infinity) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lkwq007/stablediffusion-infinity/blob/master/stablediffusion_infinity_colab.ipynb) [![Setup Locally](https://img.shields.io/badge/%F0%9F%96%A5%EF%B8%8F%20Setup-Locally-blue)](https://github.com/lkwq007/stablediffusion-infinity/blob/master/docs/setup_guide.md)
 
 
792
  """,
793
  elem_id="markdown",
794
  )
index.html CHANGED
@@ -128,18 +128,11 @@ async def draw_canvas() -> None:
128
  canvas.draw_selection_box()
129
  base_lst[0]=canvas
130
 
131
- async def draw_canvas_func(event):
132
- try:
133
- app=parent.document.querySelector("gradio-app")
134
- if app.shadowRoot:
135
- app=app.shadowRoot
136
- width=app.querySelector("#canvas_width input").value
137
- height=app.querySelector("#canvas_height input").value
138
- selection_size=app.querySelector("#selection_size input").value
139
- except:
140
- width=1500
141
- height=600
142
- selection_size=256
143
  document.querySelector("#container").style.width = f"{width}px"
144
  document.querySelector("#container").style.height= f"{height}px"
145
  canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))
 
128
  canvas.draw_selection_box()
129
  base_lst[0]=canvas
130
 
131
+ async def draw_canvas_func():
132
+
133
+ width=1500
134
+ height=600
135
+ selection_size=256
 
 
 
 
 
 
 
136
  document.querySelector("#container").style.width = f"{width}px"
137
  document.querySelector("#container").style.height= f"{height}px"
138
  canvas=InfCanvas(int(width),int(height),selection_size=int(selection_size))