multimodalart HF Staff commited on
Commit
ebe119f
·
verified ·
1 Parent(s): eafeb70

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -122,7 +122,7 @@ def colour_disp(d: np.ndarray) -> np.ndarray:
122
  # ------------------------------------------------------------------ app ----
123
 
124
 
125
- @spaces.GPU(duration=45)
126
  def predict_depth(
127
  image, max_side: int = 1280
128
  ) -> tuple[np.ndarray, np.ndarray, str]:
@@ -198,7 +198,7 @@ relative depth map the robot actually navigates on.
198
  [Model](https://huggingface.co/itaimizlish/daniel-student-depth)
199
  """
200
 
201
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
202
  gr.Markdown(TITLE)
203
  with gr.Column(elem_id="col-container"):
204
  with gr.Row():
@@ -237,4 +237,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
237
  )
238
 
239
  if __name__ == "__main__":
240
- demo.launch(mcp_server=True)
 
122
  # ------------------------------------------------------------------ app ----
123
 
124
 
125
+ @spaces.GPU(duration=10)
126
  def predict_depth(
127
  image, max_side: int = 1280
128
  ) -> tuple[np.ndarray, np.ndarray, str]:
 
198
  [Model](https://huggingface.co/itaimizlish/daniel-student-depth)
199
  """
200
 
201
+ with gr.Blocks() as demo:
202
  gr.Markdown(TITLE)
203
  with gr.Column(elem_id="col-container"):
204
  with gr.Row():
 
237
  )
238
 
239
  if __name__ == "__main__":
240
+ demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)