Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ st.title(TITLE)
|
|
43 |
st.write(DESCRIPTION)
|
44 |
|
45 |
# Prediction function
|
46 |
-
|
47 |
with st.status("Requesting Palm-2🌴..."):
|
48 |
st.write("Requesting API...")
|
49 |
response = await bard.get_answer(message if not (code_interpreter and useSystemPrompt) else message + system_prompt)
|
|
|
43 |
st.write(DESCRIPTION)
|
44 |
|
45 |
# Prediction function
|
46 |
+
async def predict(message):
|
47 |
with st.status("Requesting Palm-2🌴..."):
|
48 |
st.write("Requesting API...")
|
49 |
response = await bard.get_answer(message if not (code_interpreter and useSystemPrompt) else message + system_prompt)
|