Core23 commited on
Commit
94ada48
1 Parent(s): 552afbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def generate_response(transcribed_text):
131
  },
132
  ]
133
  )
134
- return response['choices'][0]['message']['content']
135
 
136
 
137
  def inference(text):
 
131
  },
132
  ]
133
  )
134
+ return response.choices[0].text
135
 
136
 
137
  def inference(text):