Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
247 |
-
inputs=[
|
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 |
|