Update app.py
Browse files
app.py
CHANGED
@@ -69,9 +69,9 @@ def AIPatient(message):
|
|
69 |
# For example:
|
70 |
while(len(response) < 1):
|
71 |
print("here")
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
|
76 |
context += response
|
77 |
print (context)
|
|
|
69 |
# For example:
|
70 |
while(len(response) < 1):
|
71 |
print("here")
|
72 |
+
output = llm(context, max_tokens=400, stop=["Nurse:"], echo=False)
|
73 |
+
response = output["choices"][0]["text"]
|
74 |
+
response = response.strip()
|
75 |
|
76 |
context += response
|
77 |
print (context)
|