eagle0504 commited on
Commit
a104a9f
·
verified ·
1 Parent(s): 34cae98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -24
app.py CHANGED
@@ -44,31 +44,22 @@ st.title("A.V.A. 🤖: How can I help?")
44
 
45
 
46
  with st.sidebar:
47
- with st.expander("Instruction Manual"):
48
- st.markdown("""
49
- ## A.V.A. 🤖 Another Virtual Assistant
50
- This Streamlit app allows you to chat with our LLM model.
51
-
52
- ### How to Use:
53
- 1. **Input**: Type your prompt into the chat input box labeled "What is up?".
54
- 2. **Response**: The app will display a response from our LLM.
55
- 3. **Chat History**: Previous conversations will be shown on the app.
56
-
57
- ### Credits:
58
- - **Developer**: [Yiqiao Yin](https://www.y-yin.io/) | [App URL](https://huggingface.co/spaces/eagle0504/y-yin-homepage) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/) | [YouTube](https://youtube.com/YiqiaoYin/)
59
- Enjoy chatting with Yin's assistant, Ava!
60
- """)
61
-
62
  # Example:
63
- with st.expander("Examples"):
64
- if st.button("Who is Yiqiao Yin?"):
65
- st.session_state["example_prompt"] = "Who is Yiqiao Yin?"
66
- if st.button("Where to find published papers by Yiqiao?"):
67
- st.session_state["example_prompt"] = "Where to find published papers by Yiqiao?"
68
- if st.button("What is Yiqiao's view on AI?"):
69
- st.session_state["example_prompt"] = "What is Yiqiao's view on AI?"
70
- if st.button("What is Yiqiao's view on stock market?"):
71
- st.session_state["example_prompt"] = "What is Yiqiao's view on stock market?"
 
 
 
 
 
 
72
 
73
  # Add a button to clear the session state
74
  if st.button("Clear Session"):
 
44
 
45
 
46
  with st.sidebar:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  # Example:
48
+ st.write("## Examples:")
49
+ if st.button("Who is Yiqiao Yin?"):
50
+ st.session_state["example_prompt"] = "Who is Yiqiao Yin?"
51
+ if st.button("Where to find published papers by Yiqiao?"):
52
+ st.session_state["example_prompt"] = "Where to find published papers by Yiqiao?"
53
+ if st.button("What is Yiqiao's view on AI?"):
54
+ st.session_state["example_prompt"] = "What is Yiqiao's view on AI?"
55
+ if st.button("What is Yiqiao's view on stock market?"):
56
+ st.session_state["example_prompt"] = "What is Yiqiao's view on stock market?"
57
+
58
+ st.markdown("""
59
+ ### Credits:
60
+ - **Developer**: [Yiqiao Yin](https://www.y-yin.io/) | [App URL](https://huggingface.co/spaces/eagle0504/y-yin-homepage) | [LinkedIn](https://www.linkedin.com/in/yiqiaoyin/) | [YouTube](https://youtube.com/YiqiaoYin/)
61
+ Enjoy chatting with Yin's assistant, Ava!
62
+ """)
63
 
64
  # Add a button to clear the session state
65
  if st.button("Clear Session"):