annikwag commited on
Commit
5f6b117
·
verified ·
1 Parent(s): e819134

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -404,6 +404,9 @@ else:
404
  preview_word_count = 90
405
  preview_text = " ".join(words[:preview_word_count])
406
  remainder_text = " ".join(words[preview_word_count:])
 
 
 
407
  # Create two columns: left for description, right for additional details.
408
  col_left, col_right = st.columns(2)
409
  with col_left:
@@ -485,6 +488,9 @@ else:
485
  preview_word_count = 90
486
  preview_text = " ".join(words[:preview_word_count])
487
  remainder_text = " ".join(words[preview_word_count:])
 
 
 
488
  # Create two columns: left for full description (with expander) and right for additional details.
489
  col_left, col_right = st.columns(2)
490
  with col_left:
 
404
  preview_word_count = 90
405
  preview_text = " ".join(words[:preview_word_count])
406
  remainder_text = " ".join(words[preview_word_count:])
407
+ # If the preview text is empty, set a default message.
408
+ if not preview_text.strip():
409
+ preview_text = "No project description available"
410
  # Create two columns: left for description, right for additional details.
411
  col_left, col_right = st.columns(2)
412
  with col_left:
 
488
  preview_word_count = 90
489
  preview_text = " ".join(words[:preview_word_count])
490
  remainder_text = " ".join(words[preview_word_count:])
491
+ # If the preview text is empty, set a default message.
492
+ if not preview_text.strip():
493
+ preview_text = "No project description available"
494
  # Create two columns: left for full description (with expander) and right for additional details.
495
  col_left, col_right = st.columns(2)
496
  with col_left: