Ashhar
commited on
Commit
•
073561c
1
Parent(s):
ab61ec2
cleaned the code
Browse files
app.py
CHANGED
@@ -82,18 +82,15 @@ def predict(prompt):
|
|
82 |
stream=True
|
83 |
)
|
84 |
|
85 |
-
partialMessage = ""
|
86 |
chunkCount = 0
|
87 |
for chunk in response:
|
88 |
chunkContent = chunk.choices[0].delta.content
|
89 |
if chunkContent:
|
90 |
chunkCount += 1
|
91 |
yield chunkContent
|
92 |
-
return partialMessage
|
93 |
|
94 |
|
95 |
st.title("Chat with Aariz baby 👶🏻")
|
96 |
-
# st.image("baby.png")
|
97 |
|
98 |
if "messages" not in st.session_state:
|
99 |
st.session_state.messages = []
|
|
|
82 |
stream=True
|
83 |
)
|
84 |
|
|
|
85 |
chunkCount = 0
|
86 |
for chunk in response:
|
87 |
chunkContent = chunk.choices[0].delta.content
|
88 |
if chunkContent:
|
89 |
chunkCount += 1
|
90 |
yield chunkContent
|
|
|
91 |
|
92 |
|
93 |
st.title("Chat with Aariz baby 👶🏻")
|
|
|
94 |
|
95 |
if "messages" not in st.session_state:
|
96 |
st.session_state.messages = []
|