MogensR commited on
Commit
382b6ba
·
verified ·
1 Parent(s): f642dbf

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +12 -2
ui.py CHANGED
@@ -82,7 +82,7 @@ def _render_background_settings():
82
  )
83
  stock_img_path = stock_images[stock_choice]
84
  background = Image.open(stock_img_path).convert("RGB")
85
- st.image(background, caption=stock_choice, use_column_width=True)
86
 
87
  elif bg_type == "AI Prompt":
88
  prompt = st.text_input("Describe the background to generate (AI):", key="ai_bg_prompt")
@@ -133,9 +133,19 @@ def render_ui(process_video_func):
133
  time.sleep(2)
134
  st.rerun()
135
  log_text = tail_file("/tmp/app.log", st.session_state.get('log_tail_lines', 400))
136
- st.code(log_text, language="text")
 
 
 
 
 
 
 
 
 
137
  # --- Main UI: Two-Column Layout ---
138
  col1, col2 = st.columns([1, 1], gap="large")
 
139
  # --- Column 1: Video Upload ---
140
  with col1:
141
  st.header("1. Upload Video")
 
82
  )
83
  stock_img_path = stock_images[stock_choice]
84
  background = Image.open(stock_img_path).convert("RGB")
85
+ st.image(background, caption=stock_choice, use_container_width=True)
86
 
87
  elif bg_type == "AI Prompt":
88
  prompt = st.text_input("Describe the background to generate (AI):", key="ai_bg_prompt")
 
133
  time.sleep(2)
134
  st.rerun()
135
  log_text = tail_file("/tmp/app.log", st.session_state.get('log_tail_lines', 400))
136
+ # --- made scrollable ---
137
+ st.text_area(
138
+ "Log tail (scrollable)",
139
+ value=log_text,
140
+ height=600,
141
+ max_chars=None,
142
+ key="log_tail_text",
143
+ disabled=True
144
+ )
145
+
146
  # --- Main UI: Two-Column Layout ---
147
  col1, col2 = st.columns([1, 1], gap="large")
148
+
149
  # --- Column 1: Video Upload ---
150
  with col1:
151
  st.header("1. Upload Video")