Spaces:
Runtime error
Runtime error
ishaan-mital
commited on
Commit
·
571a3b2
1
Parent(s):
e5b3e40
initial commit
Browse files
app.py
CHANGED
@@ -50,10 +50,8 @@ retrieval = Client("https://ishaan-mital-ncert-helper-vector-db.hf.space/--repli
|
|
50 |
# )
|
51 |
|
52 |
def call_llm_api(input_text,context):
|
53 |
-
payload = {
|
54 |
-
|
55 |
-
"context": context
|
56 |
-
}
|
57 |
}
|
58 |
response = requests.post(API_URL, headers=headers, json=payload)
|
59 |
return response.json() # Adjust as needed based on your API response format
|
|
|
50 |
# )
|
51 |
|
52 |
def call_llm_api(input_text,context):
|
53 |
+
payload = {
|
54 |
+
"input": 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
|