Anchal23 commited on
Commit
d2ca1f6
·
verified ·
1 Parent(s): 169f6e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -104,7 +104,7 @@ def detect_best_aspect_ratio(image):
104
  best_ratio = min(ratios.items(), key=lambda x: abs(x[1] - current_ratio))
105
 
106
  return best_ratio[0], current_ratio
107
-
108
  def extract_dominant_colors(image, n_colors=3):
109
  """Extract dominant neon-suitable colors from the image"""
110
  # Resize for faster processing
@@ -541,7 +541,6 @@ def add_audio_to_video(video_path, audio_path, output_path, start_time=0.0, fade
541
  except Exception as e:
542
  st.error(f"Audio error: {str(e)}")
543
  return False
544
-
545
 
546
  def create_video(frames, fps, output_path, aspect_ratio):
547
  """Create video from frames"""
@@ -577,7 +576,7 @@ def create_video(frames, fps, output_path, aspect_ratio):
577
  return False
578
 
579
  # Main App
580
- st.markdown("<h1>🎨 Live Drawing Studio - Neon Edition</h1>", unsafe_allow_html=True)
581
 
582
  # Initialize session state
583
  if 'video_generated' not in st.session_state:
@@ -620,8 +619,6 @@ with col2:
620
  with col_hold2:
621
  hold_final = st.slider("Hold Final Image (sec)", 0, 10, 2)
622
 
623
- st.info("✨ Colors and effects are automatically detected from your image!")
624
-
625
  st.markdown("</div>", unsafe_allow_html=True)
626
 
627
  # Auto-set these values (no user input needed)
 
104
  best_ratio = min(ratios.items(), key=lambda x: abs(x[1] - current_ratio))
105
 
106
  return best_ratio[0], current_ratio
107
+
108
  def extract_dominant_colors(image, n_colors=3):
109
  """Extract dominant neon-suitable colors from the image"""
110
  # Resize for faster processing
 
541
  except Exception as e:
542
  st.error(f"Audio error: {str(e)}")
543
  return False
 
544
 
545
  def create_video(frames, fps, output_path, aspect_ratio):
546
  """Create video from frames"""
 
576
  return False
577
 
578
  # Main App
579
+ st.markdown("<h1>🎨 Turn your Chat GPT neon images into live drawing videos</h1>", unsafe_allow_html=True)
580
 
581
  # Initialize session state
582
  if 'video_generated' not in st.session_state:
 
619
  with col_hold2:
620
  hold_final = st.slider("Hold Final Image (sec)", 0, 10, 2)
621
 
 
 
622
  st.markdown("</div>", unsafe_allow_html=True)
623
 
624
  # Auto-set these values (no user input needed)