Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,6 +82,14 @@ def secure_encoding(input_data):
|
|
| 82 |
f"Decrypted Count: {decrypted_count}",
|
| 83 |
"Data processing is complete. The encrypted data and count have been generated."
|
| 84 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
# Gradio Interface
|
| 87 |
iface = gr.Interface(
|
|
@@ -101,5 +109,5 @@ iface = gr.Interface(
|
|
| 101 |
)
|
| 102 |
|
| 103 |
# Display the image and then launch the Gradio app
|
| 104 |
-
|
| 105 |
iface.launch()
|
|
|
|
| 82 |
f"Decrypted Count: {decrypted_count}",
|
| 83 |
"Data processing is complete. The encrypted data and count have been generated."
|
| 84 |
)
|
| 85 |
+
# Gradio Interface for Image Display
|
| 86 |
+
image_interface = gr.Interface(
|
| 87 |
+
fn=show_image,
|
| 88 |
+
inputs=gr.Textbox("text", label="This input is not used"),
|
| 89 |
+
outputs=gr.HTML(),
|
| 90 |
+
title="Image Display",
|
| 91 |
+
description="This app displays an image from a URL."
|
| 92 |
+
)
|
| 93 |
|
| 94 |
# Gradio Interface
|
| 95 |
iface = gr.Interface(
|
|
|
|
| 109 |
)
|
| 110 |
|
| 111 |
# Display the image and then launch the Gradio app
|
| 112 |
+
image_interface.launch(share=True)
|
| 113 |
iface.launch()
|