Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,10 +134,10 @@ def summarize_german_text(text):
|
|
134 |
def extract_details(path):
|
135 |
sections_dict = process_pdf(path)
|
136 |
results = answer_questions_section_1(sections_dict["1. Kurzbeschreibung"])
|
137 |
-
results["Section 4.1 summary"] = summarize_german_text(sections_dict["4.1 Bewertungen von Zielen, Zielgruppen, Wirkungshypothesen und Indikatoren"])
|
138 |
-
results["Section 4.2 summary"] = summarize_german_text(sections_dict["4.2 Umgesetzte Maßnahmen / Aktivitäten während des Berichtszeitraums"])
|
139 |
-
results["Section 4.6 summary"] = summarize_german_text(sections_dict["4.6 Bewertung der Wirkungen und Risiken"])
|
140 |
-
results["Section 5.1 summary"] = summarize_german_text(sections_dict["5. Übergeordnete Empfehlungen"])
|
141 |
return results
|
142 |
# for key, answer in results.items():
|
143 |
# print(f"{key}: {answer}")
|
|
|
134 |
def extract_details(path):
|
135 |
sections_dict = process_pdf(path)
|
136 |
results = answer_questions_section_1(sections_dict["1. Kurzbeschreibung"])
|
137 |
+
# results["Section 4.1 summary"] = summarize_german_text(sections_dict["4.1 Bewertungen von Zielen, Zielgruppen, Wirkungshypothesen und Indikatoren"])
|
138 |
+
# results["Section 4.2 summary"] = summarize_german_text(sections_dict["4.2 Umgesetzte Maßnahmen / Aktivitäten während des Berichtszeitraums"])
|
139 |
+
# results["Section 4.6 summary"] = summarize_german_text(sections_dict["4.6 Bewertung der Wirkungen und Risiken"])
|
140 |
+
# results["Section 5.1 summary"] = summarize_german_text(sections_dict["5. Übergeordnete Empfehlungen"])
|
141 |
return results
|
142 |
# for key, answer in results.items():
|
143 |
# print(f"{key}: {answer}")
|