Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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}"
|