Spaces:
Sleeping
Sleeping
Commit
Β·
4010472
1
Parent(s):
8431c3b
test
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ and interact like waves in an ocean of consciousness.
|
|
10 |
|
11 |
Created by: Aye & Hue (with Trisha from Accounting keeping the numbers flowing)
|
12 |
"""
|
13 |
-
|
14 |
import gradio as gr
|
15 |
import torch
|
16 |
import numpy as np
|
@@ -133,7 +133,7 @@ class EmotionalContext:
|
|
133 |
"""String representation of emotional context."""
|
134 |
return f"EmotionalContext(valence={self.valence.item():.2f}, arousal={self.arousal.item():.2f})"
|
135 |
|
136 |
-
|
137 |
class MemoryWave:
|
138 |
"""
|
139 |
Implements the wave-based memory patterns from Mem|8 paper.
|
@@ -745,6 +745,7 @@ def generate_memory_prompt(operation: str, emotion_valence: float) -> str:
|
|
745 |
|
746 |
return prompt
|
747 |
|
|
|
748 |
def create_interface():
|
749 |
"""Create the Gradio interface for the Mem|8 Wave Memory Explorer."""
|
750 |
memory_wave = MemoryWave()
|
|
|
10 |
|
11 |
Created by: Aye & Hue (with Trisha from Accounting keeping the numbers flowing)
|
12 |
"""
|
13 |
+
import space
|
14 |
import gradio as gr
|
15 |
import torch
|
16 |
import numpy as np
|
|
|
133 |
"""String representation of emotional context."""
|
134 |
return f"EmotionalContext(valence={self.valence.item():.2f}, arousal={self.arousal.item():.2f})"
|
135 |
|
136 |
+
@spaces.GPU(duration=10)
|
137 |
class MemoryWave:
|
138 |
"""
|
139 |
Implements the wave-based memory patterns from Mem|8 paper.
|
|
|
745 |
|
746 |
return prompt
|
747 |
|
748 |
+
@spaces.GPU(duration=30)
|
749 |
def create_interface():
|
750 |
"""Create the Gradio interface for the Mem|8 Wave Memory Explorer."""
|
751 |
memory_wave = MemoryWave()
|