Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,6 +62,7 @@ iface = gr.Interface(
|
|
| 62 |
gr.Textbox("text", label="Decrypted Count"),
|
| 63 |
gr.Textbox("text", label="Process Description")
|
| 64 |
],
|
|
|
|
| 65 |
title="Paillier Encryption Demonstration",
|
| 66 |
description="This app demonstrates Paillier encryption. Enter data (e.g., smokers, non-smokers) in the textbox, and the app will perform encryption and homomorphic addition.",
|
| 67 |
examples=[
|
|
@@ -69,7 +70,7 @@ iface = gr.Interface(
|
|
| 69 |
["smokers", "non-smokers", "non-smokers", "smokers", "smokers", "non-smokers", "smokers"]
|
| 70 |
],
|
| 71 |
components=[
|
| 72 |
-
gr.Button(clear_outputs, "Clear Outputs",
|
| 73 |
gr.Button("submit", style="success") # Submit button
|
| 74 |
]
|
| 75 |
)
|
|
|
|
| 62 |
gr.Textbox("text", label="Decrypted Count"),
|
| 63 |
gr.Textbox("text", label="Process Description")
|
| 64 |
],
|
| 65 |
+
live=False, # Disable live mode
|
| 66 |
title="Paillier Encryption Demonstration",
|
| 67 |
description="This app demonstrates Paillier encryption. Enter data (e.g., smokers, non-smokers) in the textbox, and the app will perform encryption and homomorphic addition.",
|
| 68 |
examples=[
|
|
|
|
| 70 |
["smokers", "non-smokers", "non-smokers", "smokers", "smokers", "non-smokers", "smokers"]
|
| 71 |
],
|
| 72 |
components=[
|
| 73 |
+
gr.Button(clear_outputs, "Clear Outputs", style="danger"), # Apply custom style
|
| 74 |
gr.Button("submit", style="success") # Submit button
|
| 75 |
]
|
| 76 |
)
|