Vishnu Naresh Boddeti commited on
Commit
f7f0ae0
·
1 Parent(s): 5fc396e

cleanup of print

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -290,9 +290,9 @@ with gr.Blocks(css=css) as demo:
290
  output, _ = run_binary("./bin/decDecision.bin", sec_level, "decision")
291
 
292
  if output.strip().lower() == "match":
293
- result_html = f"""<div class="result-container match-verified"><h2>✅ MATCH VERIFIED</h2><p>Identity successfully confirmed under FHE. (Server output: {output.strip()})</p></div>"""
294
  else:
295
- result_html = f"""<div class="result-container no-match"><h2>❌ NO MATCH</h2><p>Identity verification failed. (Server output: {output.strip()})</p></div>"""
296
  yield "Done!", result_html, gr.update(visible=True), {"embedding": ref_emb}, ref_ciphertext, gr.update(visible=True), {"embedding": probe_emb}, probe_ciphertext
297
 
298
  rec_run_btn.click(
 
290
  output, _ = run_binary("./bin/decDecision.bin", sec_level, "decision")
291
 
292
  if output.strip().lower() == "match":
293
+ result_html = f"""<div class="result-container match-verified"><h2>✅ MATCH VERIFIED</h2><p>Identity successfully confirmed under FHE.</p></div>"""
294
  else:
295
+ result_html = f"""<div class="result-container no-match"><h2>❌ NO MATCH</h2><p>Identity verification failed.</p></div>"""
296
  yield "Done!", result_html, gr.update(visible=True), {"embedding": ref_emb}, ref_ciphertext, gr.update(visible=True), {"embedding": probe_emb}, probe_ciphertext
297
 
298
  rec_run_btn.click(