Spaces:
Sleeping
Sleeping
minor changes
Browse files
ui.py
CHANGED
@@ -93,7 +93,7 @@ def create_demo():
|
|
93 |
tab_confidence = gr.Slider(0.1, 0.9, 0.5, label="Matching Threshold")
|
94 |
|
95 |
tab_match_type = gr.Radio(
|
96 |
-
choices=["
|
97 |
value=default_match,
|
98 |
label="Match Type",
|
99 |
info="Choose whether to match against ingredients or categories"
|
@@ -123,7 +123,7 @@ def create_demo():
|
|
123 |
|
124 |
# Create the reranking tabs using the shared function
|
125 |
create_reranking_tab("Voyage AI Reranking", categorize_products_with_voyage_reranking, "categories")
|
126 |
-
create_reranking_tab("OpenAI Reranking", categorize_products_with_openai_reranking, "
|
127 |
|
128 |
# New Comparison Tab
|
129 |
with gr.TabItem("Compare Methods"):
|
|
|
93 |
tab_confidence = gr.Slider(0.1, 0.9, 0.5, label="Matching Threshold")
|
94 |
|
95 |
tab_match_type = gr.Radio(
|
96 |
+
choices=["categories", "ingredients"],
|
97 |
value=default_match,
|
98 |
label="Match Type",
|
99 |
info="Choose whether to match against ingredients or categories"
|
|
|
123 |
|
124 |
# Create the reranking tabs using the shared function
|
125 |
create_reranking_tab("Voyage AI Reranking", categorize_products_with_voyage_reranking, "categories")
|
126 |
+
create_reranking_tab("OpenAI Reranking", categorize_products_with_openai_reranking, "categories")
|
127 |
|
128 |
# New Comparison Tab
|
129 |
with gr.TabItem("Compare Methods"):
|