suriya7 commited on
Commit
d56046c
·
verified ·
1 Parent(s): e1a7c4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- Human:
21
  {question}
22
  Chatbot:"""
23
 
@@ -40,9 +40,9 @@ def conversational_chat(user_query):
40
  return result
41
 
42
 
43
- st.title('MaxMini')
44
- st.info("MaxMini-Instruct-248M is a T5 (Text-To-Text Transfer Transformer) model fine-tuned on a variety of tasks. This model is designed to perform a range of instructional tasks, enabling users to generate instructions for various inputs.")
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
- if i < len(st.session_state["human"]): # Check if 'human' list has enough elements
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")