smfaiz commited on
Commit
b9f6b28
·
verified ·
1 Parent(s): a1397bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- 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)}")
 
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)}")