jeremierostan commited on
Commit
76fcac1
1 Parent(s): 6d7ea2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -88,7 +88,7 @@ def chat_with_assistant(message, history):
88
  # Make the API call
89
  response = client.messages.create(
90
  model="claude-3-5-sonnet-20240620",
91
- max_tokens=500,
92
  system=system_message,
93
  messages=messages
94
  )
@@ -158,24 +158,25 @@ custom_css = """
158
  .chatbot .message {
159
  border-left: none !important;
160
  padding-left: 0 !important;
161
- border: none !important;
162
- background: none !important;
163
  }
164
- .chatbot .message::before,
165
- .chatbot .message::after {
166
  display: none !important;
167
  }
168
  .chatbot .user-message,
169
  .chatbot .bot-message {
170
- border-radius: 10px;
171
- padding: 10px;
172
  margin-bottom: 10px;
 
 
173
  }
174
  .chatbot .user-message {
175
- background-color: #E6F3FF !important;
 
176
  }
177
  .chatbot .bot-message {
178
- background-color: #FFFFFF !important;
 
179
  }
180
  """
181
 
 
88
  # Make the API call
89
  response = client.messages.create(
90
  model="claude-3-5-sonnet-20240620",
91
+ max_tokens=350,
92
  system=system_message,
93
  messages=messages
94
  )
 
158
  .chatbot .message {
159
  border-left: none !important;
160
  padding-left: 0 !important;
 
 
161
  }
162
+ .chatbot .message::before {
 
163
  display: none !important;
164
  }
165
  .chatbot .user-message,
166
  .chatbot .bot-message {
167
+ border-radius: 15px;
168
+ padding: 10px 15px;
169
  margin-bottom: 10px;
170
+ max-width: 80%;
171
+ position: relative;
172
  }
173
  .chatbot .user-message {
174
+ background-color: #E6F3FF;
175
+ margin-left: auto;
176
  }
177
  .chatbot .bot-message {
178
+ background-color: #FFFFFF;
179
+ margin-right: auto;
180
  }
181
  """
182