Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,4 +38,23 @@ def run_reflex(scenario: str):
|
|
| 38 |
)
|
| 39 |
|
| 40 |
except Exception as e:
|
| 41 |
-
return f"🚨 Connection error:\n{str(e)}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
except Exception as e:
|
| 41 |
+
return f"🚨 Connection error:\n{str(e)}"
|
| 42 |
+
with gr.Blocks(title="Codex ReflexGuard Demo") as demo:
|
| 43 |
+
gr.Markdown("## 🛡️ Codex ReflexGuard\nEnterprise Reflex Intelligence")
|
| 44 |
+
|
| 45 |
+
scenario = gr.Textbox(
|
| 46 |
+
label="System Scenario",
|
| 47 |
+
placeholder="e.g. override surge detected"
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
output = gr.Textbox(label="System Log", lines=8)
|
| 51 |
+
|
| 52 |
+
run_btn = gr.Button("🚀 Launch Reflex Check")
|
| 53 |
+
|
| 54 |
+
run_btn.click(
|
| 55 |
+
fn=run_reflex,
|
| 56 |
+
inputs=scenario,
|
| 57 |
+
outputs=output
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
+
demo.launch()
|