Spaces:
Sleeping
Sleeping
Nikhil0987
commited on
Commit
•
4d2da6c
1
Parent(s):
764bb11
Update convo.py
Browse files
convo.py
CHANGED
@@ -4,7 +4,7 @@ from streamlit_option_menu import option_menu
|
|
4 |
|
5 |
|
6 |
def Convo():
|
7 |
-
convo = st.
|
8 |
chatbot = pipeline(task="conversational", model="microsoft/DialoGPT-medium")
|
9 |
conversation = Conversation(convo)
|
10 |
|
@@ -18,8 +18,9 @@ def Convo():
|
|
18 |
|
19 |
# conversation.add_user_input("{}".format(convo))
|
20 |
# conversation = chatbot(conversation)
|
21 |
-
|
22 |
-
|
|
|
23 |
|
24 |
|
25 |
# convo()
|
|
|
4 |
|
5 |
|
6 |
def Convo():
|
7 |
+
convo = st.chat_input("Enter your message")
|
8 |
chatbot = pipeline(task="conversational", model="microsoft/DialoGPT-medium")
|
9 |
conversation = Conversation(convo)
|
10 |
|
|
|
18 |
|
19 |
# conversation.add_user_input("{}".format(convo))
|
20 |
# conversation = chatbot(conversation)
|
21 |
+
with st.chat_message("assistant"):
|
22 |
+
ans.generated_responses[-1]
|
23 |
+
# st.write(ans)
|
24 |
|
25 |
|
26 |
# convo()
|