Spaces:
Sleeping
Sleeping
Commit
Β·
a34a6ab
1
Parent(s):
a1d1dab
ok
Browse files- app.py +8 -4
- memory_snapshots/memory_hot_tub_20250314_232308.json +0 -0
- memory_snapshots/memory_resonance_20250314_232227.json +0 -0
- memory_snapshots/memory_resonance_20250314_232242.json +0 -0
- memory_snapshots/memory_resonance_20250314_232252.json +0 -0
- memory_snapshots/memory_resonance_20250314_232326.json +0 -0
- memory_snapshots/memory_wave_memory_20250314_232206.json +0 -0
app.py
CHANGED
@@ -792,9 +792,13 @@ def process_memory_operation(
|
|
792 |
metrics_str = "π Analysis Results:\n\n"
|
793 |
for key, value in metrics.items():
|
794 |
if key == "shape":
|
795 |
-
metrics_str += f"β’ {key.replace('_', ' ').title()}: {list(value)}\n"
|
796 |
-
|
|
|
|
|
797 |
metrics_str += f"β’ {key.replace('_', ' ').title()}: {value:.4f}\n"
|
|
|
|
|
798 |
|
799 |
metrics_str += f"\nπ Emotional Context:\n"
|
800 |
metrics_str += f"β’ Valence: {result['emotion']['valence']:.2f}\n"
|
@@ -1036,7 +1040,7 @@ if __name__ == "__main__":
|
|
1036 |
demo.launch(
|
1037 |
server_name="0.0.0.0", # Listen on all interfaces
|
1038 |
server_port=7860, # Default Spaces port
|
1039 |
-
share=True, # Don't create public link
|
1040 |
show_api=False, # Hide API docs
|
1041 |
-
max_threads=10 # Limit to 10 threads
|
|
|
1042 |
)
|
|
|
792 |
metrics_str = "π Analysis Results:\n\n"
|
793 |
for key, value in metrics.items():
|
794 |
if key == "shape":
|
795 |
+
metrics_str += f"β’ {key.replace('_', ' ').title()}: {list(value)}\n"
|
796 |
+
elif key == "interference_type": # Handle string values
|
797 |
+
metrics_str += f"β’ {key.replace('_', ' ').title()}: {value}\n"
|
798 |
+
elif isinstance(value, (int, float)): # Format numbers only
|
799 |
metrics_str += f"β’ {key.replace('_', ' ').title()}: {value:.4f}\n"
|
800 |
+
else:
|
801 |
+
metrics_str += f"β’ {key.replace('_', ' ').title()}: {value}\n"
|
802 |
|
803 |
metrics_str += f"\nπ Emotional Context:\n"
|
804 |
metrics_str += f"β’ Valence: {result['emotion']['valence']:.2f}\n"
|
|
|
1040 |
demo.launch(
|
1041 |
server_name="0.0.0.0", # Listen on all interfaces
|
1042 |
server_port=7860, # Default Spaces port
|
|
|
1043 |
show_api=False, # Hide API docs
|
1044 |
+
max_threads=10, # Limit to 10 threads
|
1045 |
+
ssr=False # Disable SSR for better stability
|
1046 |
)
|
memory_snapshots/memory_hot_tub_20250314_232308.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
memory_snapshots/memory_resonance_20250314_232227.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
memory_snapshots/memory_resonance_20250314_232242.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
memory_snapshots/memory_resonance_20250314_232252.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
memory_snapshots/memory_resonance_20250314_232326.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
memory_snapshots/memory_wave_memory_20250314_232206.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|