ilhianois commited on
Commit
5095272
·
verified ·
1 Parent(s): 4a05fc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,11 +58,11 @@ def create_demo():
58
  gr.update(value="") # Clear session input field
59
  )
60
  else:
61
- fallback_message = f"Welcome to Dr. Pepe's Longevity Assistant! How can I help you today?"
62
  return [{"role": "assistant", "content": fallback_message}], gr.update(visible=False), [], current_session_id, gr.update(value="")
63
  except Exception as e:
64
  print(f"Error connecting to server: {str(e)}")
65
- fallback_message = f"Welcome to Dr. Pepe's Longevity Assistant! How can I help you today?"
66
  return [{"role": "assistant", "content": fallback_message}], gr.update(visible=False), [], current_session_id, gr.update(value="")
67
 
68
  # Refactored restart_conversation
 
58
  gr.update(value="") # Clear session input field
59
  )
60
  else:
61
+ fallback_message = f"Welcome to Longevity Assistant! How can I help you today?"
62
  return [{"role": "assistant", "content": fallback_message}], gr.update(visible=False), [], current_session_id, gr.update(value="")
63
  except Exception as e:
64
  print(f"Error connecting to server: {str(e)}")
65
+ fallback_message = f"Welcome to Longevity Assistant! How can I help you today?"
66
  return [{"role": "assistant", "content": fallback_message}], gr.update(visible=False), [], current_session_id, gr.update(value="")
67
 
68
  # Refactored restart_conversation