dineshabeysinghe commited on
Commit
9351e39
β€’
1 Parent(s): 2d42455

updated UI

Browse files
Files changed (2) hide show
  1. app.py +0 -12
  2. style/style.css +0 -63
app.py CHANGED
@@ -14,18 +14,6 @@ if 'chat_history' not in st.session_state:
14
  # Define Streamlit app layout
15
  st.markdown("<h1 style='color: orange;'>πŸ’¬πŸ—£οΈ AI Type Talk Chat</h1>", unsafe_allow_html=True)
16
  st.caption("πŸš€ Chat bot developed By :- [Dinesh Abeysinghe](https://www.linkedin.com/in/dinesh-abeysinghe-bb773293) | [GitHub Source Code](https://github.com/dineshabey/AI-TypeTalkChat.git) | [About model](https://arxiv.org/abs/2004.13637) ")
17
- st.markdown('''
18
- <button class='relative flex items-center overflow-hidden from-red-50 to-transparent dark:from-red-900 px-1.5 py-1 hover:bg-gradient-to-t focus:outline-none' title='Unlike'>
19
- <svg class='left-1.5 absolute' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' focusable='false' role='img' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32' fill='currentColor'>
20
- <path d='M22.45,6a5.47,5.47,0,0,1,3.91,1.64,5.7,5.7,0,0,1,0,8L16,26.13,5.64,15.64a5.7,5.7,0,0,1,0-8,5.48,5.48,0,0,1,7.82,0L16,10.24l2.53-2.58A5.44,5.44,0,0,1,22.45,6m0-2a7.47,7.47,0,0,0-5.34,2.24L16,7.36,14.89,6.24a7.49,7.49,0,0,0-10.68,0,7.72,7.72,0,0,0,0,10.82L16,29,27.79,17.06a7.72,7.72,0,0,0,0-10.82A7.49,7.49,0,0,0,22.45,4Z'></path>
21
- </svg>
22
- <svg class='absolute text-red-500 origin-center transform transition-transform ease-in left-1.5' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' focusable='false' role='img' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32' fill='currentColor'>
23
- <path d='M22.5,4c-2,0-3.9,0.8-5.3,2.2L16,7.4l-1.1-1.1C12,3.3,7.2,3.3,4.3,6.2c0,0-0.1,0.1-0.1,0.1c-3,3-3,7.8,0,10.8L16,29l11.8-11.9c3-3,3-7.8,0-10.8C26.4,4.8,24.5,4,22.5,4z'></path>
24
- </svg>
25
- <span class='ml-4 pl-0.5'>like</span>
26
- </button>
27
- ''', unsafe_allow_html=True)
28
-
29
 
30
  # Create text area for user input
31
  with st.form(key='user_input_form'):
 
14
  # Define Streamlit app layout
15
  st.markdown("<h1 style='color: orange;'>πŸ’¬πŸ—£οΈ AI Type Talk Chat</h1>", unsafe_allow_html=True)
16
  st.caption("πŸš€ Chat bot developed By :- [Dinesh Abeysinghe](https://www.linkedin.com/in/dinesh-abeysinghe-bb773293) | [GitHub Source Code](https://github.com/dineshabey/AI-TypeTalkChat.git) | [About model](https://arxiv.org/abs/2004.13637) ")
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  # Create text area for user input
19
  with st.form(key='user_input_form'):
style/style.css DELETED
@@ -1,63 +0,0 @@
1
- /* style.css */
2
-
3
- body {
4
- background-color: #f0f2f6;
5
- }
6
-
7
- .stApp {
8
- max-width: 100%;
9
- padding-top: 50px;
10
- }
11
-
12
- .stTextInput {
13
- margin-bottom: 20px;
14
- }
15
-
16
- .stButton button {
17
- background-color: #4CAF50;
18
- border: none;
19
- color: white;
20
- padding: 15px 32px;
21
- text-align: center;
22
- text-decoration: none;
23
- display: inline-block;
24
- font-size: 16px;
25
- margin: 4px 2px;
26
- cursor: pointer;
27
- border-radius: 5px;
28
- }
29
-
30
- .stButton button:hover {
31
- background-color: #7EC0EE;
32
- }
33
-
34
- .chat-container {
35
- background-color: white;
36
- padding: 6px;
37
- border-radius: 5px;
38
- overflow: hidden;
39
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
40
- }
41
-
42
- .user-message {
43
- background-color: rgba(0, 0, 255, 0.2); /* Transparent blue color */
44
- color: black;
45
- padding: 10px 20px;
46
- margin: 5px;
47
- border-radius: 15px; /* Round border */
48
- clear: both;
49
- float: right;
50
- border: 1px solid black; /* Black border */
51
- text-align: center;
52
- }
53
-
54
- .bot-message {
55
- background-color: rgba(0, 0, 255, 0.2); /* Transparent blue color */
56
- color: black;
57
- padding: 10px 20px;
58
- margin: 5px;
59
- border-radius: 15px; /* Round border */
60
- clear: both;
61
- float: left;
62
- border: 1px solid black; /* Black border */
63
- }