hareballak commited on
Commit
34a23c4
·
verified ·
1 Parent(s): e7ccf3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -73,7 +73,16 @@ def get_bot_response(query):
73
  best_idx = torch.argmax(scores)
74
 
75
  top_qa = qa_data[best_idx]
76
- prompt = f"User asked: {query}\nRelevant FAQ: {top_qa['question']}\nAnswer: {top_qa['answer']}\nNow generate a helpful and fluent Tamil response to the user query."
 
 
 
 
 
 
 
 
 
77
 
78
  # Use LLaMA for generating the refined response
79
  headers = {"Authorization": f"Bearer {HF_API_TOKEN}"}
 
73
  best_idx = torch.argmax(scores)
74
 
75
  top_qa = qa_data[best_idx]
76
+ prompt = f"""நீ ஒரு அறிவாளியான தமிழ் உதவியாளர்.
77
+
78
+ தகவல்கள்:
79
+ கேள்வி: {top_qa['question']}
80
+ பதில்: {top_qa['answer']}
81
+
82
+ மேலே உள்ள தகவல்களைப் பயன்படுத்தி, தெளிவான மற்றும் சுருக்கமான பதிலை வழங்கவும்.
83
+
84
+ உயர்கட்ட கேள்வி: {query}
85
+ பதில்:"""
86
 
87
  # Use LLaMA for generating the refined response
88
  headers = {"Authorization": f"Bearer {HF_API_TOKEN}"}