Tonic commited on
Commit
3580ef0
β€’
1 Parent(s): ebc470f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -239,12 +239,10 @@ def app_interface():
239
  encoding_format_connector = gr.Radio(label="Encoding Format", choices=["float", "base64"], value="float")
240
  user_connector = gr.Textbox(label="User", placeholder="Enter user identifier (optional)")
241
  submit_button_connector = gr.Button("Generate Embeddings")
242
-
243
  output_display_connector = gr.JSON(label="Embeddings Output")
244
-
245
  submit_button_connector.click(
246
- fn=generate_and_format_embeddings,
247
- inputs=[input_text_box_connector, model_dropdown_connector, encoding_format_connector, user_connector],
248
  outputs=output_display_connector
249
  )
250
 
 
239
  encoding_format_connector = gr.Radio(label="Encoding Format", choices=["float", "base64"], value="float")
240
  user_connector = gr.Textbox(label="User", placeholder="Enter user identifier (optional)")
241
  submit_button_connector = gr.Button("Generate Embeddings")
 
242
  output_display_connector = gr.JSON(label="Embeddings Output")
 
243
  submit_button_connector.click(
244
+ fn=connector_wrapper,
245
+ inputs=[model_dropdown_connector, input_text_box_connector],
246
  outputs=output_display_connector
247
  )
248