SoraAv commited on
Commit
c5d3cf2
·
verified ·
1 Parent(s): 0a2ff37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ def generate_response(user_query, relevant_segment):
82
  presence_penalty=0.5,
83
  stop=None
84
  )
85
- return response.choices[0].text.strip()
86
 
87
  # Extract the response text
88
  output_text = response['choices'][0]['message']['content'].strip()
 
82
  presence_penalty=0.5,
83
  stop=None
84
  )
85
+
86
 
87
  # Extract the response text
88
  output_text = response['choices'][0]['message']['content'].strip()