Shahzad8515 commited on
Commit
abde4a1
·
verified ·
1 Parent(s): 8ec65bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -139,12 +139,13 @@ def process_audio(audio_file):
139
  if not combined_text.strip():
140
  return "No relevant information found in the PDFs", None
141
  prompt = (
142
- f"The user has provided the following query related to cotton crop: {text}. "
143
- f"Here are some relevant passages from the document: {combined_text}. "
144
- "Please provide concise advice based on this information."
145
  )
146
 
147
 
 
148
  print(f"Prompt: {prompt}") # Debugging line
149
 
150
  chat_completion = client.chat.completions.create(
 
139
  if not combined_text.strip():
140
  return "No relevant information found in the PDFs", None
141
  prompt = (
142
+ f"The user has asked a query related to agricultural practices: {text}. "
143
+ f"Here are relevant excerpts from the Better Crops South Asia document: {combined_text}. "
144
+ "Based on this information, please provide accurate advice related to sustainable crop management, pest control, irrigation practices, and any recommendations for improving crop yield in the South Asian region."
145
  )
146
 
147
 
148
+
149
  print(f"Prompt: {prompt}") # Debugging line
150
 
151
  chat_completion = client.chat.completions.create(