Aish106201223 commited on
Commit
a0a91d8
·
verified ·
1 Parent(s): 3dbb896

Update ui_module.py

Browse files
Files changed (1) hide show
  1. ui_module.py +22 -0
ui_module.py CHANGED
@@ -233,8 +233,17 @@ INPUT_HINT_HTML = """
233
  """
234
 
235
 
 
 
 
 
236
  def build_ui(evaluate_fn):
237
 
 
 
 
 
 
238
  def _split_metrics(metrics_str: str):
239
  acc, summary = "", ""
240
  if not metrics_str:
@@ -261,6 +270,11 @@ def build_ui(evaluate_fn):
261
 
262
  gr.HTML(HEADER_HTML)
263
 
 
 
 
 
 
264
  with gr.Row(equal_height=True):
265
  description_input = gr.Textbox(
266
  label="Requirements Description",
@@ -291,6 +305,10 @@ def build_ui(evaluate_fn):
291
 
292
  gr.HTML(INPUT_HINT_HTML)
293
 
 
 
 
 
294
  with gr.Row():
295
  eval_btn = gr.Button("Evaluate", variant="primary",
296
  elem_id="eval-btn", scale=0)
@@ -299,6 +317,10 @@ def build_ui(evaluate_fn):
299
 
300
  gr.HTML(RESULTS_HEADING_HTML)
301
 
 
 
 
 
302
  with gr.Row(equal_height=True):
303
  verdict_out = gr.Textbox(
304
  label="Verdict",
 
233
  """
234
 
235
 
236
+ ##-----------
237
+ ## Build UI
238
+ ##-----------
239
+
240
  def build_ui(evaluate_fn):
241
 
242
+ ##-----------
243
+ ## THE _ui_evaluate FUNCTION
244
+ ##-----------
245
+
246
+
247
  def _split_metrics(metrics_str: str):
248
  acc, summary = "", ""
249
  if not metrics_str:
 
270
 
271
  gr.HTML(HEADER_HTML)
272
 
273
+ ##-----------
274
+ ## Inputs
275
+ ##-----------
276
+
277
+
278
  with gr.Row(equal_height=True):
279
  description_input = gr.Textbox(
280
  label="Requirements Description",
 
305
 
306
  gr.HTML(INPUT_HINT_HTML)
307
 
308
+ ##-----------
309
+ ## Buttons
310
+ ##-----------
311
+
312
  with gr.Row():
313
  eval_btn = gr.Button("Evaluate", variant="primary",
314
  elem_id="eval-btn", scale=0)
 
317
 
318
  gr.HTML(RESULTS_HEADING_HTML)
319
 
320
+ ##-----------
321
+ ## Output
322
+ ##-----------
323
+
324
  with gr.Row(equal_height=True):
325
  verdict_out = gr.Textbox(
326
  label="Verdict",