Spaces:
Sleeping
Sleeping
Commit
·
0ed187b
1
Parent(s):
808aea7
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,10 @@ def get_response(user_input):
|
|
8 |
except Exception as e:
|
9 |
return "Error: {}".format(str(e))
|
10 |
else:
|
11 |
-
st.chat_message("
|
12 |
-
|
|
|
|
|
13 |
|
14 |
st.sidebar.title("KviGPT")
|
15 |
st.sidebar.subheader("Chat based on Gpt-3")
|
|
|
8 |
except Exception as e:
|
9 |
return "Error: {}".format(str(e))
|
10 |
else:
|
11 |
+
with st.chat_message("User"):
|
12 |
+
st.write(user_input)
|
13 |
+
with st.chat_message("KviGPT"):
|
14 |
+
st.write(response)
|
15 |
|
16 |
st.sidebar.title("KviGPT")
|
17 |
st.sidebar.subheader("Chat based on Gpt-3")
|