AliHaider0343 commited on
Commit
4fd78bc
1 Parent(s): 4ffca4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -45,9 +45,8 @@ def Get_Inference(text_input):
45
  formatted_prompt = prompt.format(format_instructions=format_instructions, text=text_input)
46
  print("\n\n\n\n",formatted_prompt)
47
  # Send the prompt to the LLM and get the response
48
- try:
49
- response = llm.invoke(formatted_prompt) # Pass a list with a single prompt string
50
- return str(response).replace('`','').replace('json','')
51
  # Handle the error case appropriately
52
 
53
 
 
45
  formatted_prompt = prompt.format(format_instructions=format_instructions, text=text_input)
46
  print("\n\n\n\n",formatted_prompt)
47
  # Send the prompt to the LLM and get the response
48
+ response = llm.invoke(formatted_prompt) # Pass a list with a single prompt string
49
+ return str(response).replace('`','').replace('json','')
 
50
  # Handle the error case appropriately
51
 
52