aaporosh commited on
Commit
7a45022
·
verified ·
1 Parent(s): 9763f1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -167,7 +167,7 @@ def answer_question(text_vector_store, code_vector_store, query):
167
  response = qa_pipeline(prompt)[0]['generated_text'].strip()
168
 
169
  if is_code_query:
170
- response = f"Here's the relevant code extracted from the PDF:\n```python\n{response}\n```"
171
 
172
  logger.info("Answer generated")
173
  return f"Got it! Here's the answer:\n\n{response}"
 
167
  response = qa_pipeline(prompt)[0]['generated_text'].strip()
168
 
169
  if is_code_query:
170
+ response = f"Here's the relevant code extracted from the PDF:\n```python
171
 
172
  logger.info("Answer generated")
173
  return f"Got it! Here's the answer:\n\n{response}"