Alessandro Piana commited on
Commit
1af08a4
·
1 Parent(s): a6fdf24

dockerfile con logging 51

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. static/js/chat.js +2 -2
app.py CHANGED
@@ -141,7 +141,7 @@ def get_life_coach_model():
141
 
142
  return model_instance
143
 
144
-
145
  def generate_response_threadsafe(prompt: str, conversation_history: list) -> str:
146
  """
147
  Generate a response using the model with thread-safe access.
 
141
 
142
  return model_instance
143
 
144
+
145
  def generate_response_threadsafe(prompt: str, conversation_history: list) -> str:
146
  """
147
  Generate a response using the model with thread-safe access.
static/js/chat.js CHANGED
@@ -172,8 +172,8 @@ async function handleSendMessage(e) {
172
  if (lastMessage && lastMessage.classList.contains('user')) {
173
  lastMessage.remove();
174
  }
175
- }
176
-
177
  } catch (error) {
178
  console.error('Error sending message:', error);
179
  showError('Network error. Please try again.');
 
172
  if (lastMessage && lastMessage.classList.contains('user')) {
173
  lastMessage.remove();
174
  }
175
+ }
176
+
177
  } catch (error) {
178
  console.error('Error sending message:', error);
179
  showError('Network error. Please try again.');