Kvikontent commited on
Commit
19699b5
·
verified ·
1 Parent(s): 80c0fa5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  import logging
3
- from bing_chat import BingChat
4
 
5
  st.title("ChatGPT4 UI")
6
  cont = st.container(height=600)
@@ -8,7 +8,7 @@ prompt = st.chat_input(placeholder="Eg. How are you?")
8
 
9
  logging.basicConfig(level=logging.INFO)
10
 
11
- chat = BingChat("")
12
 
13
  def main():
14
  st.title("ChatGPT4 UI")
@@ -16,7 +16,7 @@ def main():
16
  prompt = st.chat_input(placeholder="Eg. How are you?")
17
 
18
  if st.button("Send"):
19
- messages = chat.run(prompt)
20
 
21
  for message in prompt:
22
  if message['source'] == 'user':
 
1
  import streamlit as st
2
  import logging
3
+ from bing_chat import BingGPT
4
 
5
  st.title("ChatGPT4 UI")
6
  cont = st.container(height=600)
 
8
 
9
  logging.basicConfig(level=logging.INFO)
10
 
11
+ chat = BingGPT("")
12
 
13
  def main():
14
  st.title("ChatGPT4 UI")
 
16
  prompt = st.chat_input(placeholder="Eg. How are you?")
17
 
18
  if st.button("Send"):
19
+ messages = chat.ask(prompt)
20
 
21
  for message in prompt:
22
  if message['source'] == 'user':