Spaces:
Runtime error
Runtime error
Update app.py
Browse files36 unmodified lines3738394041424336 unmodified linesst.subheader("Longs paragraphes du PDF avec résumé:")for i, paragraphe in enumerate(longs_paragraphes, start=1):summary = summarizer(paragraphe, max_length=600, min_length=30, do_sample=False)if summary and len(summary) > 0 and 'summary_text' in summary[0]:st.text(f"Paragraphe {i}: {summary[0]['summary_text']}")else:st.text(f"Paragraphe {i}: Résumé indisponible")36 unmodified lines373839404142434445464736 unmodified linesst.subheader("Longs paragraphes du PDF avec résumé:")for i, paragraphe in enumerate(longs_paragraphes, start=1):summary = summarizer(paragraphe, max_length=600, min_length=30, do_sample=False)if isinstance(summary, list) and summary:summary_text = summary[0].get("summary_text")if summary_text:st.text(f"Paragraphe {i}: {summary_text}")else:st.text(f"Paragraphe {i}: Résumé indisponible")else:st.text(f"Paragraphe {i}: Résumé indisponible")
app.py+6-2