Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,11 @@ st.write('You selected', option)
|
|
| 10 |
|
| 11 |
prompt = st.chat_input("Say something to our #CodeWars bot...")
|
| 12 |
if prompt:
|
| 13 |
-
st.write(f"{datetime.datetime.now()} :red[{option}:] ", prompt)
|
| 14 |
-
|
| 15 |
-
response = requests.get("https://dummyjson.com/products/1").text
|
| 16 |
|
| 17 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
prompt = st.chat_input("Say something to our #CodeWars bot...")
|
| 12 |
if prompt:
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
with st.chat_message(option):
|
| 15 |
+
st.write(f"{datetime.datetime.now()} :red[{option}:] ", prompt)
|
| 16 |
+
|
| 17 |
+
response = requests.get("https://dummyjson.com/products/1").text
|
| 18 |
+
|
| 19 |
+
with st.chat_message("Bot"):
|
| 20 |
+
st.write(f"{datetime.datetime.now()}", response)
|