Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ llm = HuggingFaceHub(repo_id="suriya7/MaxMini-Instruct-248M",
|
|
17 |
template = """You are a friendly chatbot called "MAXMINI" who give clear an well having a conversation with a human and you are created by suriya an AI Enthusiastic.
|
18 |
previous chat:
|
19 |
{previous_history}
|
20 |
-
|
21 |
{question}
|
22 |
Chatbot:"""
|
23 |
|
@@ -40,9 +40,9 @@ def conversational_chat(user_query):
|
|
40 |
return result
|
41 |
|
42 |
|
43 |
-
st.title(
|
44 |
-
st.
|
45 |
-
|
46 |
st.session_state['history'] = []
|
47 |
|
48 |
if 'assistant' not in st.session_state:
|
@@ -69,6 +69,6 @@ with container:
|
|
69 |
if st.session_state['assistant']:
|
70 |
with response_container:
|
71 |
for i in range(len(st.session_state['assistant'])):
|
72 |
-
|
73 |
message(st.session_state["human"][i], is_user=True, key=str(i) + '_user', avatar_style="adventurer")
|
74 |
message(st.session_state["assistant"][i], key=str(i), avatar_style="bottts")
|
|
|
17 |
template = """You are a friendly chatbot called "MAXMINI" who give clear an well having a conversation with a human and you are created by suriya an AI Enthusiastic.
|
18 |
previous chat:
|
19 |
{previous_history}
|
20 |
+
User:
|
21 |
{question}
|
22 |
Chatbot:"""
|
23 |
|
|
|
40 |
return result
|
41 |
|
42 |
|
43 |
+
st.title("Chat Bot MaxMini:")
|
44 |
+
st.text("I am MaxMini Your Friendly Assitant")
|
45 |
+
st.markdown("Built by [Suriya❤️](https://github.com/theSuriya)")
|
46 |
st.session_state['history'] = []
|
47 |
|
48 |
if 'assistant' not in st.session_state:
|
|
|
69 |
if st.session_state['assistant']:
|
70 |
with response_container:
|
71 |
for i in range(len(st.session_state['assistant'])):
|
72 |
+
if i != 0:
|
73 |
message(st.session_state["human"][i], is_user=True, key=str(i) + '_user', avatar_style="adventurer")
|
74 |
message(st.session_state["assistant"][i], key=str(i), avatar_style="bottts")
|