Tijmen2 commited on
Commit
977acb2
·
verified ·
1 Parent(s): c3386a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -50,6 +50,12 @@ def bot(history):
50
 
51
  def initial_greeting():
52
  """Return properly formatted initial greeting."""
 
 
 
 
 
 
53
  return [{"role": "assistant", "content": random.choice(greeting_messages)}]
54
 
55
 
@@ -73,15 +79,6 @@ def main():
73
  use_gpu=True,
74
  )
75
 
76
- # Placeholder responses for when context is empty
77
- greeting_messages = [
78
- "Greetings! I am AstroSage, your guide to the cosmos. What would you like to explore today?",
79
- "Welcome to our cosmic journey! I am AstroSage. How may I assist you in understanding the universe?",
80
- "AstroSage here. Ready to explore the mysteries of space and time. How may I be of assistance?",
81
- "The universe awaits! I'm AstroSage. What astronomical wonders shall we discuss?",
82
- ]
83
-
84
-
85
  # Custom CSS for a space theme
86
  custom_css = """
87
  #component-0 {
 
50
 
51
  def initial_greeting():
52
  """Return properly formatted initial greeting."""
53
+ greeting_messages = [
54
+ "Greetings! I am AstroSage, your guide to the cosmos. What would you like to explore today?",
55
+ "Welcome to our cosmic journey! I am AstroSage. How may I assist you in understanding the universe?",
56
+ "AstroSage here. Ready to explore the mysteries of space and time. How may I be of assistance?",
57
+ "The universe awaits! I'm AstroSage. What astronomical wonders shall we discuss?",
58
+ ]
59
  return [{"role": "assistant", "content": random.choice(greeting_messages)}]
60
 
61
 
 
79
  use_gpu=True,
80
  )
81
 
 
 
 
 
 
 
 
 
 
82
  # Custom CSS for a space theme
83
  custom_css = """
84
  #component-0 {