Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,7 @@ def secure_encoding(input_data):
|
|
| 43 |
print("Decrypted Count:", decrypted_count)
|
| 44 |
|
| 45 |
return (
|
|
|
|
| 46 |
f"Encrypted Ciphertext of the First Element: {encrypted_data[0].ciphertext()}",
|
| 47 |
f"Encrypted Count: {encrypted_count}",
|
| 48 |
f"Decrypted Count: {decrypted_count}",
|
|
@@ -54,6 +55,7 @@ iface = gr.Interface(
|
|
| 54 |
fn=secure_encoding,
|
| 55 |
inputs=gr.Textbox("text", placeholder="Enter data (e.g., smokers, non-smokers)"),
|
| 56 |
outputs=[
|
|
|
|
| 57 |
gr.Textbox("text", label="Encrypted Ciphertext"),
|
| 58 |
gr.Textbox("text", label="Encrypted Count"),
|
| 59 |
gr.Textbox("text", label="Decrypted Count"),
|
|
|
|
| 43 |
print("Decrypted Count:", decrypted_count)
|
| 44 |
|
| 45 |
return (
|
| 46 |
+
f"Input raw data": {data}",
|
| 47 |
f"Encrypted Ciphertext of the First Element: {encrypted_data[0].ciphertext()}",
|
| 48 |
f"Encrypted Count: {encrypted_count}",
|
| 49 |
f"Decrypted Count: {decrypted_count}",
|
|
|
|
| 55 |
fn=secure_encoding,
|
| 56 |
inputs=gr.Textbox("text", placeholder="Enter data (e.g., smokers, non-smokers)"),
|
| 57 |
outputs=[
|
| 58 |
+
gr.Textbox("text", label="Raw data"),
|
| 59 |
gr.Textbox("text", label="Encrypted Ciphertext"),
|
| 60 |
gr.Textbox("text", label="Encrypted Count"),
|
| 61 |
gr.Textbox("text", label="Decrypted Count"),
|