Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix generator
Browse files
app.py
CHANGED
@@ -71,10 +71,8 @@ async def chat_response(query, history, method, country, uploaded_file):
|
|
71 |
try:
|
72 |
# response = f"Based on EUDR reports for {country}, I can help you understand deforestation patterns and compliance requirements. Your question: '{query}' is being analyzed..."
|
73 |
retrieved_paragraphs = retrieve_paragraphs(query)
|
74 |
-
|
75 |
-
|
76 |
-
print(response)
|
77 |
-
|
78 |
except Exception as e:
|
79 |
response = f"Error retrieving information: {str(e)}"
|
80 |
|
|
|
71 |
try:
|
72 |
# response = f"Based on EUDR reports for {country}, I can help you understand deforestation patterns and compliance requirements. Your question: '{query}' is being analyzed..."
|
73 |
retrieved_paragraphs = retrieve_paragraphs(query)
|
74 |
+
response = await generate(query=query, context=retrieved_paragraphs)
|
75 |
+
|
|
|
|
|
76 |
except Exception as e:
|
77 |
response = f"Error retrieving information: {str(e)}"
|
78 |
|