esilver commited on
Commit
34f11d4
·
1 Parent(s): bd13f5e

compare to chicory-ui

Browse files
Files changed (1) hide show
  1. ui.py +6 -3
ui.py CHANGED
@@ -65,12 +65,15 @@ def create_demo():
65
  """Create the Gradio interface"""
66
  with gr.Blocks(css="""
67
  .results-container {
68
- min-height: 600px !important;
 
69
  overflow-y: auto !important;
 
70
  padding: 15px !important;
71
  border: 1px solid #333 !important;
72
  background-color: #121212 !important;
73
  color: #fff !important;
 
74
  }
75
  .product-result {
76
  background-color: #1e1e1e !important;
@@ -112,7 +115,7 @@ def create_demo():
112
  )
113
  input_controls = gr.Row()
114
  with input_controls:
115
- top_n = gr.Slider(1, 10, 5, label="Top N Results")
116
  confidence = gr.Slider(0.1, 0.9, 0.5, label="Confidence Threshold")
117
  categorize_btn = gr.Button("Categorize", variant="primary")
118
 
@@ -127,7 +130,7 @@ def create_demo():
127
  file_input = gr.File(label="Upload JSON or text file with products", file_types=[".json", ".txt"])
128
  file_controls = gr.Row()
129
  with file_controls:
130
- file_top_n = gr.Slider(1, 10, 5, label="Top N Results")
131
  file_confidence = gr.Slider(0.1, 0.9, 0.5, label="Confidence Threshold")
132
  process_btn = gr.Button("Process File", variant="primary")
133
 
 
65
  """Create the Gradio interface"""
66
  with gr.Blocks(css="""
67
  .results-container {
68
+ height: 600px !important;
69
+ max-height: 600px !important;
70
  overflow-y: auto !important;
71
+ overflow-x: hidden !important;
72
  padding: 15px !important;
73
  border: 1px solid #333 !important;
74
  background-color: #121212 !important;
75
  color: #fff !important;
76
+ display: block !important;
77
  }
78
  .product-result {
79
  background-color: #1e1e1e !important;
 
115
  )
116
  input_controls = gr.Row()
117
  with input_controls:
118
+ top_n = gr.Slider(1, 25, 5, label="Top N Results")
119
  confidence = gr.Slider(0.1, 0.9, 0.5, label="Confidence Threshold")
120
  categorize_btn = gr.Button("Categorize", variant="primary")
121
 
 
130
  file_input = gr.File(label="Upload JSON or text file with products", file_types=[".json", ".txt"])
131
  file_controls = gr.Row()
132
  with file_controls:
133
+ file_top_n = gr.Slider(1, 25, 5, label="Top N Results")
134
  file_confidence = gr.Slider(0.1, 0.9, 0.5, label="Confidence Threshold")
135
  process_btn = gr.Button("Process File", variant="primary")
136