aminaB9 commited on
Commit
4920c2c
·
1 Parent(s): 718f4cd

Initial commit

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
README.md CHANGED
@@ -7,7 +7,7 @@ sdk: gradio
7
  sdk_version: 5.22.0
8
  app_file: app.py
9
  pinned: false
10
- short_description: Biometric Search FHE
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  sdk_version: 5.22.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: Biometric Search (1:N search) using FHE
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -61,15 +61,15 @@ def runBinFile(*args):
61
  text=True
62
  )
63
  end = time.time()
64
- duration = (end - start) * 1000
65
  if 'print' in args:
66
  return result.stdout
67
  elif ('styledPrint' in args) and (result.returncode == 0):
68
- return True, f"<b>⏱️ Processing Time:</b> {duration:.0f} ms", styled_output(result.stdout)
69
  elif 'styledPrint' in args:
70
  return styled_output(result.stdout)
71
  elif result.returncode == 0:
72
- return True, f"<b>⏱️ Processing Time:</b> {duration:.0f} ms"
73
  else:
74
  return False
75
  except Exception as e:
 
61
  text=True
62
  )
63
  end = time.time()
64
+ duration = (end - start)
65
  if 'print' in args:
66
  return result.stdout
67
  elif ('styledPrint' in args) and (result.returncode == 0):
68
+ return True, f"<b>⏱️ Processing Time:</b> {duration:.2f} s", styled_output(result.stdout)
69
  elif 'styledPrint' in args:
70
  return styled_output(result.stdout)
71
  elif result.returncode == 0:
72
+ return True, f"<b>⏱️ Processing Time:</b> {duration:.2f} s"
73
  else:
74
  return False
75
  except Exception as e: