ankush13r commited on
Commit
26636f3
1 Parent(s): b10c5fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ rag = RAG(embeddings_model=os.getenv("EMBEDDINGS"))
19
  def eadop_rag(prompt, num_chunks):
20
  model_parameters = {"NUM_CHUNKS": num_chunks}
21
  try:
22
- retrun rag.get_context(prompt, model_parameters)
23
  except HTTPError as err:
24
  if err.code == 400:
25
  gr.Warning(
 
19
  def eadop_rag(prompt, num_chunks):
20
  model_parameters = {"NUM_CHUNKS": num_chunks}
21
  try:
22
+ return rag.get_context(prompt, model_parameters)
23
  except HTTPError as err:
24
  if err.code == 400:
25
  gr.Warning(