Surn commited on
Commit
dd90e5c
·
1 Parent(s): 65121c6

Bug fix in load_data

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -125,6 +125,10 @@ def load_data(request: gr.Request, model_3d, image_slider):
125
  model_url = query_params.get("3d", None)
126
  hm_url = query_params.get("hm", None)
127
  img_url = query_params.get("image", None)
 
 
 
 
128
 
129
  # Process the model URL if provided.
130
  if model_url:
 
125
  model_url = query_params.get("3d", None)
126
  hm_url = query_params.get("hm", None)
127
  img_url = query_params.get("image", None)
128
+
129
+ if model_url is None and hm_url is None and img_url is None:
130
+ # No URLs provided, return default values.
131
+ query_params = {}
132
 
133
  # Process the model URL if provided.
134
  if model_url: