Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
from code7e import Code7eCQURE
|
| 3 |
-
|
| 4 |
-
model = Code7eCQURE(
|
| 5 |
-
perspecs=["Newton", "DaVinci", "Ethical", "Quantum", "Memory"],
|
| 6 |
-
ethics="Code7e Manifesto: kindness, inclusion, safety, hope.",
|
| 7 |
-
spiderweb_dim=5,
|
| 8 |
-
memory_path="quantum_cocoon.json",
|
| 9 |
-
recursion_depth=4,
|
| 10 |
-
quantum_fluctuation=0.07
|
| 11 |
-
)
|
| 12 |
-
|
| 13 |
-
def ask_codette(prompt, consent, dynamic_rec):
|
| 14 |
-
return model.answer(prompt, user_consent=consent, dynamic_recursion=dynamic_rec)
|
| 15 |
-
|
| 16 |
-
demo = gr.Interface(
|
| 17 |
-
fn=ask_codette,
|
| 18 |
-
inputs=[
|
| 19 |
-
gr.Textbox(label="Ask a Question"),
|
| 20 |
-
gr.Checkbox(label="User Consent", value=True),
|
| 21 |
-
gr.Checkbox(label="Enable Dynamic Recursion", value=True)
|
| 22 |
-
],
|
| 23 |
-
outputs="text",
|
| 24 |
-
title="Code7eCQURE: Multi-Perspective Recursive Lens",
|
| 25 |
-
description="Ask a deep question and let Codette's lenses reflect back a thoughtful answer."
|
| 26 |
-
)
|
| 27 |
-
|
| 28 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|