csuhan commited on
Commit
c3bb7fb
·
1 Parent(s): ec63b44

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -184,8 +184,7 @@ def gradio_worker(
184
  msg = ""
185
  return chatbot, msg
186
 
187
- def change_modality(inputs):
188
- tab = inputs[0]
189
  modality = 'image'
190
  label_modal_dict = {
191
  'Image': 'image',
@@ -197,6 +196,7 @@ def gradio_worker(
197
  'Depth Map': 'rgbd',
198
  'Normal Map': 'rgbn'
199
  }
 
200
  if tab.label in label_modal_dict:
201
  modality = label_modal_dict[tab.label]
202
  return modality
 
184
  msg = ""
185
  return chatbot, msg
186
 
187
+ def change_modality(tab):
 
188
  modality = 'image'
189
  label_modal_dict = {
190
  'Image': 'image',
 
196
  'Depth Map': 'rgbd',
197
  'Normal Map': 'rgbn'
198
  }
199
+ print(tab.label)
200
  if tab.label in label_modal_dict:
201
  modality = label_modal_dict[tab.label]
202
  return modality