ThreadAbort commited on
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! 🚒

Files changed (1) hide show
  1. app.py +5 -1
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
- process_memory_operation, # Use the standalone function
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,