shitaot commited on
Commit
989461e
β€’
1 Parent(s): 4c183ff
Files changed (2) hide show
  1. app.py +5 -3
  2. model.pyc +2 -2
app.py CHANGED
@@ -10,6 +10,8 @@ import lib.Equirec2Perspec as E2P
10
  import lib.Perspec2Equirec as P2E
11
  import lib.multi_Perspec2Equirec as m_P2E
12
  from model import Model, generate_basic, generate_advanced
 
 
13
 
14
  def get_K_R(FOV, THETA, PHI, height, width):
15
  f = 0.5 * width * 1 / np.tan(0.5 * FOV / 180.0 * np.pi)
@@ -160,7 +162,7 @@ if __name__=='__main__':
160
  }
161
  """
162
 
163
- inputs=[gr.Textbox(type="text", label='Text{}'.format(i)) for i in range(8)]
164
 
165
  with gr.Blocks(css=css) as demo:
166
 
@@ -183,7 +185,7 @@ if __name__=='__main__':
183
  with gr.Row():
184
  gr.HTML("""
185
  <div style='text-align: center; font-size: 20px;'>
186
- If the demo is not working, please use this <a href='https://4b6387ba0df9681051.gradio.live'>link</a>
187
  </div>
188
  """)
189
  with gr.Tab("Basic"):
@@ -241,7 +243,7 @@ if __name__=='__main__':
241
  with gr.Accordion("Expand/hide examples") as acc_advanced:
242
  for i, example in enumerate(examples_advanced):
243
  with gr.Row():
244
- gr.Image(load_example_img('assets/advanced/img{}.png'.format(i+1)), label='example {}'.format(i+1))
245
  with gr.Row():
246
  gr.Textbox(type="text", label='Text 1', value=example[0])
247
  gr.Textbox(type="text", label='Text 2', value=example[1])
 
10
  import lib.Perspec2Equirec as P2E
11
  import lib.multi_Perspec2Equirec as m_P2E
12
  from model import Model, generate_basic, generate_advanced
13
+ from model_outpaint import generate_basic as outpaint_basic
14
+ from model_outpaint import generate_advanced as outpaint_advanced
15
 
16
  def get_K_R(FOV, THETA, PHI, height, width):
17
  f = 0.5 * width * 1 / np.tan(0.5 * FOV / 180.0 * np.pi)
 
162
  }
163
  """
164
 
165
+ inputs=[gr.Textbox(type="text", value=example1[i], label='Text{}'.format(i)) for i in range(8)]
166
 
167
  with gr.Blocks(css=css) as demo:
168
 
 
185
  with gr.Row():
186
  gr.HTML("""
187
  <div style='text-align: center; font-size: 20px;'>
188
+ It's recommended to use chatGPT to augment prompts to get better results.
189
  </div>
190
  """)
191
  with gr.Tab("Basic"):
 
243
  with gr.Accordion("Expand/hide examples") as acc_advanced:
244
  for i, example in enumerate(examples_advanced):
245
  with gr.Row():
246
+ gr.Image(load_example_img('assets/advanced/img{}.png'.format(i+1)) , label='example {}'.format(i+1))
247
  with gr.Row():
248
  gr.Textbox(type="text", label='Text 1', value=example[0])
249
  gr.Textbox(type="text", label='Text 2', value=example[1])
model.pyc CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:48ce66ea6d9dad460de5c732edc9b9c7f76508c3bb3b3210bae3a3debd69e9b7
3
- size 26325
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29e3399b603b3b0f335038c17a715d69243ee5df1786d6f79f0d55a5882f5566
3
+ size 25794