Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -400,8 +400,11 @@ engine = NexisSignalEngine(memory_path="signals.db", max_memory_entries=100, mem
|
|
| 400 |
|
| 401 |
# Gradio interface function
|
| 402 |
def analyze_signal(input_text):
|
| 403 |
-
|
| 404 |
-
|
|
|
|
|
|
|
|
|
|
| 405 |
|
| 406 |
# Create Gradio interface
|
| 407 |
interface = gr.Interface(
|
|
|
|
| 400 |
|
| 401 |
# Gradio interface function
|
| 402 |
def analyze_signal(input_text):
|
| 403 |
+
try:
|
| 404 |
+
result = engine.process(input_text)
|
| 405 |
+
return json.dumps(result, indent=2)
|
| 406 |
+
except Exception as e:
|
| 407 |
+
return f"Error: {str(e)}"
|
| 408 |
|
| 409 |
# Create Gradio interface
|
| 410 |
interface = gr.Interface(
|