ishaan-mital commited on
Commit
571a3b2
·
1 Parent(s): e5b3e40

initial commit

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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 = {"input": {
54
- "question": input_text,
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