KyleI007 commited on
Commit
fc6fa0a
·
1 Parent(s): b5dd679

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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.write(f"{datetime.datetime.now()} :red[Bot:] ", response)
 
 
 
 
 
 
 
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)