leoeric commited on
Commit
d092df2
·
1 Parent(s): 5ade07c

Fix: Remove unsupported show_copy_button parameter and fix PYTORCH_ALLOC_CONF deprecation

Browse files

- Remove show_copy_button parameter (not supported in this Gradio version)
- Change PYTORCH_CUDA_ALLOC_CONF to PYTORCH_ALLOC_CONF to fix deprecation warning
- Keep larger status box for better error visibility

Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -11,7 +11,7 @@ os.environ['OMP_NUM_THREADS'] = '1'
11
  os.environ['MKL_NUM_THREADS'] = '1'
12
  os.environ['NUMEXPR_NUM_THREADS'] = '1'
13
  # Fix CUDA memory fragmentation
14
- os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'expandable_segments:True'
15
 
16
  import warnings
17
  import gradio as gr
@@ -708,8 +708,7 @@ with gr.Blocks(title="STARFlow - Text-to-Image & Video Generation") as demo:
708
  max_lines=50,
709
  interactive=False,
710
  elem_classes="status-box",
711
- placeholder="Status messages will appear here...",
712
- show_copy_button=True # Allow copying error messages
713
  )
714
 
715
  image_btn.click(
@@ -798,8 +797,7 @@ with gr.Blocks(title="STARFlow - Text-to-Image & Video Generation") as demo:
798
  max_lines=50,
799
  interactive=False,
800
  elem_classes="status-box",
801
- placeholder="Status messages will appear here...",
802
- show_copy_button=True # Allow copying error messages
803
  )
804
 
805
  video_btn.click(
 
11
  os.environ['MKL_NUM_THREADS'] = '1'
12
  os.environ['NUMEXPR_NUM_THREADS'] = '1'
13
  # Fix CUDA memory fragmentation
14
+ os.environ['PYTORCH_ALLOC_CONF'] = 'expandable_segments:True'
15
 
16
  import warnings
17
  import gradio as gr
 
708
  max_lines=50,
709
  interactive=False,
710
  elem_classes="status-box",
711
+ placeholder="Status messages will appear here..."
 
712
  )
713
 
714
  image_btn.click(
 
797
  max_lines=50,
798
  interactive=False,
799
  elem_classes="status-box",
800
+ placeholder="Status messages will appear here..."
 
801
  )
802
 
803
  video_btn.click(