aquibmoin commited on
Commit
59f0172
·
verified ·
1 Parent(s): 6606654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  # FC-RAG with FAISS
2
 
3
- # re-build-1
4
 
5
  import gradio as gr
6
  from transformers import AutoTokenizer, AutoModel
@@ -320,7 +320,7 @@ def export_to_word(response_content, subdomain_definition, science_goal, context
320
  for section in sections:
321
  if section.strip():
322
  # Handle the "Observations Requirements Table" separately with proper formatting
323
- if section.startswith('Observations Requirements Table'):
324
  doc.add_heading('Observations Requirements Table', level=1)
325
 
326
  # Extract table lines
 
1
  # FC-RAG with FAISS
2
 
3
+ # re-build: 02/03/2025
4
 
5
  import gradio as gr
6
  from transformers import AutoTokenizer, AutoModel
 
320
  for section in sections:
321
  if section.strip():
322
  # Handle the "Observations Requirements Table" separately with proper formatting
323
+ if 'Observations Requirements Table' in section:
324
  doc.add_heading('Observations Requirements Table', level=1)
325
 
326
  # Extract table lines