mskov commited on
Commit
4bbda62
1 Parent(s): deea3a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -76,15 +76,16 @@ def inference(audio, state=""):
76
  infers =[]
77
  for i in range(5):
78
  print("print1 ", response['choices'][i]['text'])
79
- infers += response['choices'][i]['text']
80
  print("print2: infers ", infers)
81
  print("print3: Responses ", response)
82
  print("Object type of response: ", type(response))
 
83
 
84
 
85
  # result.text
86
  #return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
87
- return result.text, state, response
88
 
89
 
90
 
 
76
  infers =[]
77
  for i in range(5):
78
  print("print1 ", response['choices'][i]['text'])
79
+ infers.append(response['choices'][i]['text'])
80
  print("print2: infers ", infers)
81
  print("print3: Responses ", response)
82
  print("Object type of response: ", type(response))
83
+
84
 
85
 
86
  # result.text
87
  #return getText, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
88
+ return result.text, state, infers
89
 
90
 
91