Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import healspace
|
| 3 |
+
|
| 4 |
+
def demo_function():
|
| 5 |
+
# HealSpace guardian seal
|
| 6 |
+
return healspace.seal()
|
| 7 |
+
|
| 8 |
+
with gr.Blocks() as demo:
|
| 9 |
+
gr.Markdown("## HealSpace Demo Capsule")
|
| 10 |
+
gr.Markdown("Press the button below to see HealSpace enforce its ritual seal.")
|
| 11 |
+
btn = gr.Button("Error this Space")
|
| 12 |
+
output = gr.Textbox(label="HealSpace Output")
|
| 13 |
+
|
| 14 |
+
btn.click(fn=demo_function, outputs=output)
|
| 15 |
+
|
| 16 |
+
demo.launch()
|