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