Spaces:
Runtime error
Runtime error
ishaan-mital
commited on
Commit
•
4ebe251
1
Parent(s):
571a3b2
initial commit
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ retrieval = Client("https://ishaan-mital-ncert-helper-vector-db.hf.space/--repli
|
|
51 |
|
52 |
def call_llm_api(input_text,context):
|
53 |
payload = {
|
54 |
-
"
|
55 |
}
|
56 |
response = requests.post(API_URL, headers=headers, json=payload)
|
57 |
return response.json() # Adjust as needed based on your API response format
|
|
|
51 |
|
52 |
def call_llm_api(input_text,context):
|
53 |
payload = {
|
54 |
+
"inputs": f'question: {input_text}, context: {context}'
|
55 |
}
|
56 |
response = requests.post(API_URL, headers=headers, json=payload)
|
57 |
return response.json() # Adjust as needed based on your API response format
|