AdiOO7 commited on
Commit
ebfe215
1 Parent(s): 04f0b73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ def answer_prompt(text):
62
 
63
  for i in range(len(answer)):
64
  if answer[i] > ind:
65
- bot_response = bot_response = 'This Solution is Extracted from the Database' + '\n' + f'Similarity Score is {round(sim * 100)} %' + '\n' + f'The issue is raised for {df["TECHNOLOGY"][answer[i - 1]]}' + '\n' + df['SOLUTION'][answer[i - 1]]
66
  break
67
 
68
  if sim > 0.5:
@@ -80,7 +80,7 @@ def answer_prompt(text):
80
  presence_penalty = 0.7,
81
  )
82
 
83
- return 'This response is generated by GPT 3.5 Turbo LLM' + '\n' + response['choices'][0]['text']
84
 
85
  iface = gr.Interface(fn=answer_prompt,
86
  inputs=gr.Textbox(lines=10, label="Enter Your Issue", css={"font-size":"18px"}),
 
62
 
63
  for i in range(len(answer)):
64
  if answer[i] > ind:
65
+ bot_response = bot_response = 'This Solution is Extracted from the Database' + '\n\n' + f'Similarity Score is {round(sim * 100)} %' + '\n\n' + f'The issue is raised for {df["TECHNOLOGY"][answer[i - 1]]}' + '\n\n' + df['SOLUTION'][answer[i - 1]]
66
  break
67
 
68
  if sim > 0.5:
 
80
  presence_penalty = 0.7,
81
  )
82
 
83
+ return 'This response is generated by GPT 3.5 Turbo LLM' + '\n\n' + response['choices'][0]['text']
84
 
85
  iface = gr.Interface(fn=answer_prompt,
86
  inputs=gr.Textbox(lines=10, label="Enter Your Issue", css={"font-size":"18px"}),