zxhezexin commited on
Commit
797cdd5
1 Parent(s): d0599f7

Update app

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -84,7 +84,7 @@ def demo_openlrm(infer_impl):
84
  </div>
85
  OpenLRM is an open-source implementation of Large Reconstruction Models.
86
 
87
- <strong>Image-to-3D in 10 seconds!</strong>
88
 
89
  <strong>Disclaimer:</strong> This demo uses `openlrm-mix-base-1.1` model with 288x288 rendering resolution here for a quick demonstration.
90
  '''
@@ -155,7 +155,7 @@ def demo_openlrm(infer_impl):
155
  inputs=[input_image],
156
  outputs=[processed_image, output_video],
157
  fn=example_fn,
158
- cache_examples=os.getenv('SYSTEM') != 'spaces',
159
  examples_per_page=20,
160
  )
161
 
@@ -197,7 +197,7 @@ def launch_gradio_app():
197
  InferrerClass : Inferrer = REGISTRY_RUNNERS[os.getenv("APP_TYPE")]
198
  with InferrerClass() as inferrer:
199
  init_preprocessor()
200
- if os.getenv('SYSTEM') != 'spaces':
201
  from openlrm.utils.proxy import no_proxy
202
  demo = no_proxy(demo_openlrm)
203
  else:
 
84
  </div>
85
  OpenLRM is an open-source implementation of Large Reconstruction Models.
86
 
87
+ <strong>Image-to-3D in 10 seconds with A100!</strong>
88
 
89
  <strong>Disclaimer:</strong> This demo uses `openlrm-mix-base-1.1` model with 288x288 rendering resolution here for a quick demonstration.
90
  '''
 
155
  inputs=[input_image],
156
  outputs=[processed_image, output_video],
157
  fn=example_fn,
158
+ cache_examples=bool(os.getenv('SPACE_ID')),
159
  examples_per_page=20,
160
  )
161
 
 
197
  InferrerClass : Inferrer = REGISTRY_RUNNERS[os.getenv("APP_TYPE")]
198
  with InferrerClass() as inferrer:
199
  init_preprocessor()
200
+ if not bool(os.getenv('SPACE_ID')):
201
  from openlrm.utils.proxy import no_proxy
202
  demo = no_proxy(demo_openlrm)
203
  else: