Spaces:
Sleeping
Sleeping
Commit
Β·
4368f78
1
Parent(s):
f2a04c1
[Update]: Enhanced app.py with memory operation wrapper for improved processing π
Browse files- Added: Wrapper function `process_with_memory_wave` to ensure `memory_wave` is passed as the first argument for better clarity and functionality.
- Updated: Button click handler to utilize the new wrapper function, enhancing the overall flow of memory operations.
- Pro Tip of the Commit: Sometimes, a little wrapper can make a big difference in how we ride the waves! ππ
Aye, Aye! π’
app.py
CHANGED
@@ -980,8 +980,12 @@ def create_interface():
|
|
980 |
art_output = gr.Image(label="Artistic Visualization", visible=STABLE_DIFFUSION_AVAILABLE)
|
981 |
|
982 |
# Set up event handlers
|
|
|
|
|
|
|
|
|
983 |
run_btn.click(
|
984 |
-
|
985 |
inputs=[
|
986 |
operation_input,
|
987 |
emotion_input,
|
|
|
980 |
art_output = gr.Image(label="Artistic Visualization", visible=STABLE_DIFFUSION_AVAILABLE)
|
981 |
|
982 |
# Set up event handlers
|
983 |
+
def process_with_memory_wave(*args):
|
984 |
+
"""Wrapper to ensure memory_wave is passed as first argument."""
|
985 |
+
return process_memory_operation(memory_wave, *args)
|
986 |
+
|
987 |
run_btn.click(
|
988 |
+
process_with_memory_wave, # Use wrapper function
|
989 |
inputs=[
|
990 |
operation_input,
|
991 |
emotion_input,
|