Spaces:
Sleeping

ARD-RGL commited on
Commit
2eee1a8
·
verified ·
1 Parent(s): 2879d2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -20
app.py CHANGED
@@ -88,23 +88,14 @@ def make_phase_table():
88
  rows += f"| {phase} | {task} | {status} |\n"
89
  return rows
90
 
91
- def generate_review(raw_input, clarity_check, risk_check, improved_output, decision):
92
  now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
93
  return f"""# {decision} Review
94
 
95
  **Time:** {now}
96
 
97
- ## Raw Input
98
- {raw_input or "No raw input provided."}
99
-
100
- ## Clarity Check
101
- {clarity_check or "No clarity check provided."}
102
-
103
- ## Risk Check
104
- {risk_check or "No risk check provided."}
105
-
106
- ## Improved Verified Output
107
- {improved_output or "No improved output provided."}
108
 
109
  ## Sourceborn Lock
110
  * Sourceborn Sequence = v0.1 Review Status
@@ -233,13 +224,11 @@ Raw Input → Clarity Check → Risk Check → Improved Verified Output
233
  """
234
  )
235
 
236
- with gr.Row():
237
- raw_input = gr.Textbox(label="Raw Input", lines=6)
238
- clarity_check = gr.Textbox(label="Clarity Check", lines=6)
239
-
240
- with gr.Row():
241
- risk_check = gr.Textbox(label="Risk Check", lines=6)
242
- improved_output = gr.Textbox(label="Improved Verified Output", lines=6)
243
 
244
  decision = gr.Radio(
245
  choices=["PASS", "HOLD", "REJECT"],
@@ -252,7 +241,7 @@ Raw Input → Clarity Check → Risk Check → Improved Verified Output
252
 
253
  button.click(
254
  fn=generate_review,
255
- inputs=[raw_input, clarity_check, risk_check, improved_output, decision],
256
  outputs=result,
257
  )
258
 
 
88
  rows += f"| {phase} | {task} | {status} |\n"
89
  return rows
90
 
91
+ def generate_review(review_input, decision):
92
  now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
93
  return f"""# {decision} Review
94
 
95
  **Time:** {now}
96
 
97
+ ## Review Input
98
+ {review_input or "No review input provided."}
 
 
 
 
 
 
 
 
 
99
 
100
  ## Sourceborn Lock
101
  * Sourceborn Sequence = v0.1 Review Status
 
224
  """
225
  )
226
 
227
+ review_input = gr.Textbox(
228
+ label="Review Input",
229
+ placeholder="Paste your complete review, raw input, clarity checks, risk assessment, and verified output here...",
230
+ lines=12,
231
+ )
 
 
232
 
233
  decision = gr.Radio(
234
  choices=["PASS", "HOLD", "REJECT"],
 
241
 
242
  button.click(
243
  fn=generate_review,
244
+ inputs=[review_input, decision],
245
  outputs=result,
246
  )
247