com3dian commited on
Commit
c2c697a
·
verified ·
1 Parent(s): d459820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,11 +42,11 @@ with col2:
42
  max_value=100,
43
  value=(25, 75)
44
  )
45
- st.session_state.generation_done = False
46
 
 
 
47
 
48
  if uploaded_file is not None and not st.session_state.generation_done:
49
- summ_text = None
50
  st.write(uploaded_file.name)
51
  bytes_data = uploaded_file.getvalue()
52
  st.write(len(bytes_data), "bytes")
@@ -79,7 +79,7 @@ if uploaded_file is not None and not st.session_state.generation_done:
79
 
80
  st.session_state.generation_done = True
81
 
82
- if summ_text is not None:
83
 
84
  # Function to render HTML content
85
  def format(text_list):
 
42
  max_value=100,
43
  value=(25, 75)
44
  )
 
45
 
46
+ st.session_state.generation_done = False
47
+ summ_text = None
48
 
49
  if uploaded_file is not None and not st.session_state.generation_done:
 
50
  st.write(uploaded_file.name)
51
  bytes_data = uploaded_file.getvalue()
52
  st.write(len(bytes_data), "bytes")
 
79
 
80
  st.session_state.generation_done = True
81
 
82
+ if (summ_text is not None) or ('summ_text' in st.session_state):
83
 
84
  # Function to render HTML content
85
  def format(text_list):