Spaces:
Sleeping
Sleeping
fix apikey
Browse files
pages/1_Dokter_Virtual.py
CHANGED
@@ -24,7 +24,7 @@ if not cekApikey():
|
|
24 |
if prop:
|
25 |
openai.api_key = prop
|
26 |
|
27 |
-
|
28 |
for i, message in enumerate(st.session_state.messages):
|
29 |
if i == 0:
|
30 |
continue
|
@@ -41,4 +41,4 @@ if prompt := st.chat_input("Masukkan pesan"):
|
|
41 |
|
42 |
st.session_state.messages.append({"role" : "assistant", "content" : response})
|
43 |
with st.chat_message("assistant"):
|
44 |
-
st.markdown(f"Dr. Rehan
|
|
|
24 |
if prop:
|
25 |
openai.api_key = prop
|
26 |
|
27 |
+
|
28 |
for i, message in enumerate(st.session_state.messages):
|
29 |
if i == 0:
|
30 |
continue
|
|
|
41 |
|
42 |
st.session_state.messages.append({"role" : "assistant", "content" : response})
|
43 |
with st.chat_message("assistant"):
|
44 |
+
st.markdown(f"Dr. Rehan: {response}")
|