MakiPan commited on
Commit
bc1d057
·
1 Parent(s): 58ac711

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -85,9 +85,9 @@ def generate_annotation(img, overlap=False, hand_encoding=False):
85
  # STEP 5: Process the classification result. In this case, visualize it.
86
  annotated_image = draw_landmarks_on_image(image.numpy_view(), detection_result, overlap=overlap, hand_encoding=hand_encoding)
87
  return annotated_image
88
- with gr.Row():
89
- model_type = gr.Radio(["Standard", "Hand Encoding"], label="Model preprocessing", info="We developed two models, one with standard mediapipe landmarks, and one with different (but similar) coloring on palm landmards to distinguish left and right")
90
 
 
 
91
  if model_type=="Standard":
92
  args = Namespace(
93
  pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5",
 
85
  # STEP 5: Process the classification result. In this case, visualize it.
86
  annotated_image = draw_landmarks_on_image(image.numpy_view(), detection_result, overlap=overlap, hand_encoding=hand_encoding)
87
  return annotated_image
 
 
88
 
89
+ model_type = gr.Radio(["Standard", "Hand Encoding"], label="Model preprocessing", info="We developed two models, one with standard mediapipe landmarks, and one with different (but similar) coloring on palm landmards to distinguish left and right")
90
+ model_type="Standard"
91
  if model_type=="Standard":
92
  args = Namespace(
93
  pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5",