Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import logging
|
3 |
-
from bing_chat import
|
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 =
|
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.
|
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':
|