VeuReu commited on
Commit
c01761a
verified
1 Parent(s): ea3e9f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -162,6 +162,12 @@ with gr.Blocks(title="Salamandra Vision 7B 路 ZeroGPU") as demo:
162
  batch_btn.click(describe_batch, [batch_in_images, batch_context, batch_max, batch_temp], batch_out,
163
  api_name="predict", concurrency_limit=1)
164
 
 
 
 
 
 
 
165
 
166
  demo.queue(max_size=16).launch()
167
 
 
162
  batch_btn.click(describe_batch, [batch_in_images, batch_context, batch_max, batch_temp], batch_out,
163
  api_name="predict", concurrency_limit=1)
164
 
165
+ with gr.Row():
166
+ face_img = gr.Image(label="Imagen para embedding facial", type="pil")
167
+ face_btn = gr.Button("Obtener embedding facial")
168
+ face_out = gr.JSON(label="Embedding facial (vector)")
169
+ face_btn.click(face_image_embedding, [face_img], face_out, api_name="face_image_embedding", concurrency_limit=1)
170
+
171
 
172
  demo.queue(max_size=16).launch()
173