Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,15 +70,15 @@ def reply(input, dataset_name):
|
|
70 |
presence_penalty=0,
|
71 |
model="text-davinci-003"
|
72 |
)["choices"][0]["text"].strip(" \n")
|
73 |
-
|
|
|
|
|
|
|
|
|
74 |
except Exception as e:
|
75 |
return f"An error occurred: {e}"
|
76 |
|
77 |
-
|
78 |
-
for message in response:
|
79 |
-
chat_transcript += response + "\n\n" message['content'] + "\n\n"
|
80 |
-
|
81 |
-
return chat_transcript
|
82 |
|
83 |
|
84 |
|
|
|
70 |
presence_penalty=0,
|
71 |
model="text-davinci-003"
|
72 |
)["choices"][0]["text"].strip(" \n")
|
73 |
+
chat_transcript = ""
|
74 |
+
for message in response:
|
75 |
+
chat_transcript += response + "\n\n" message['content'] + "\n\n"
|
76 |
+
|
77 |
+
return chat_transcript
|
78 |
except Exception as e:
|
79 |
return f"An error occurred: {e}"
|
80 |
|
81 |
+
|
|
|
|
|
|
|
|
|
82 |
|
83 |
|
84 |
|