NBayer commited on
Commit
1e17bf9
1 Parent(s): 486c2a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -10
app.py CHANGED
@@ -78,18 +78,23 @@ with tab_your_paper:
78
  tags_available = True
79
  except:
80
  tags_available = False
81
-
82
- summary = summarize_text({
83
- "inputs": all_text_together
84
- })[0]["summary_text"]
85
 
 
 
 
 
 
 
 
 
86
  col1, col2 = st.columns(2)
87
- with col1:
88
- if len(recently_added) > 1:
89
- st.markdown("#### Summary of your paper(s):")
90
- else:
91
- st.markdown("#### Summary of your paper:")
92
- st.write(summary)
 
93
 
94
  if tags_available == True:
95
  with col2:
 
78
  tags_available = True
79
  except:
80
  tags_available = False
 
 
 
 
81
 
82
+ try:
83
+ summary = summarize_text({
84
+ "inputs": all_text_together
85
+ })[0]["summary_text"]
86
+ sum_available = True
87
+ except:
88
+ sum_available = False
89
+
90
  col1, col2 = st.columns(2)
91
+ if sum_available == True:
92
+ with col1:
93
+ if len(recently_added) > 1:
94
+ st.markdown("#### Summary of your paper(s):")
95
+ else:
96
+ st.markdown("#### Summary of your paper:")
97
+ st.write(summary)
98
 
99
  if tags_available == True:
100
  with col2: