Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
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:
|