vjain commited on
Commit
f4f2cf4
1 Parent(s): 79227a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -71,7 +71,8 @@ def reply(input, dataset_name):
71
  model="text-davinci-003"
72
  )["choices"][0]["text"].strip(" \n")
73
  chat_transcript = ""
74
- chat_transcript += input + "\n\n" + response + "\n\n"
 
75
 
76
  return chat_transcript
77
  except Exception as e:
 
71
  model="text-davinci-003"
72
  )["choices"][0]["text"].strip(" \n")
73
  chat_transcript = ""
74
+ for message in respone
75
+ chat_transcript += input + "\n\n" + message[response] + "\n\n"
76
 
77
  return chat_transcript
78
  except Exception as e: