Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ if prompt := st.chat_input("Hi, explain me what goal you want to achieve."):
|
|
33 |
Follow all the above instruction for this given input:- {prompt}"""
|
34 |
completion = model.generate_content(enprom)
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
|
40 |
# Print the generated text
|
41 |
with st.chat_message("Assistant"):
|
|
|
33 |
Follow all the above instruction for this given input:- {prompt}"""
|
34 |
completion = model.generate_content(enprom)
|
35 |
|
36 |
+
response = palm.chat(messages=["Hello."])
|
37 |
+
print(response.last) # 'Hello! What can I help you with?'
|
38 |
+
response.reply("Can you tell me a joke?")
|
39 |
|
40 |
# Print the generated text
|
41 |
with st.chat_message("Assistant"):
|