Spaces:
Running
Running
Initial commit
Browse files
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)
|
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:.
|
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:.
|
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:
|