Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -183,11 +183,11 @@ def research_assistant(research_topic, citation_style):
|
|
183 |
# Fetching article content might not be feasible; consider using metadata
|
184 |
article_content += f"{extract_text_from_html(article['link'])}.\n" # Simplified; actual content may require other methods
|
185 |
|
186 |
-
citation, error = generate_citation_t5(article['title'], citation_style, article['link'])
|
187 |
-
if error:
|
188 |
-
|
189 |
-
else:
|
190 |
-
|
191 |
|
192 |
except Exception as e:
|
193 |
summaries.append(f"Error processing article '{article['title']}': {str(e)}")
|
|
|
183 |
# Fetching article content might not be feasible; consider using metadata
|
184 |
article_content += f"{extract_text_from_html(article['link'])}.\n" # Simplified; actual content may require other methods
|
185 |
|
186 |
+
# citation, error = generate_citation_t5(article['title'], citation_style, article['link'])
|
187 |
+
# if error:
|
188 |
+
# citations.append(f"Error generating citation for '{article['title']}': {error}")
|
189 |
+
# else:
|
190 |
+
# citations.append(citation)
|
191 |
|
192 |
except Exception as e:
|
193 |
summaries.append(f"Error processing article '{article['title']}': {str(e)}")
|