Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,6 +134,8 @@ def query_model(question):
|
|
134 |
return "There are many locations near Sacramento where you can stargaze: Kalithea Park, Northstar Park, Curtis Park, Lake Theodore, Casa Bella Verde, McKinley Park, Tiscornia Park, Old Sacramento Waterfront.", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/sacramento.png"
|
135 |
if "los angeles" in question.lower() or "la" in question.lower():
|
136 |
return "There are many locations near Los Angeles where you can stargaze: Leo Carrillo State Beach (Malibu), Malibu Creek State Park (Malibu), Griffith Observatory (Griffith Park), Mount Wilson Observatory (Angeles Crest)", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/la.png"
|
|
|
|
|
137 |
|
138 |
relevant_segment = find_relevant_segment(question, segments)
|
139 |
if not relevant_segment:
|
|
|
134 |
return "There are many locations near Sacramento where you can stargaze: Kalithea Park, Northstar Park, Curtis Park, Lake Theodore, Casa Bella Verde, McKinley Park, Tiscornia Park, Old Sacramento Waterfront.", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/sacramento.png"
|
135 |
if "los angeles" in question.lower() or "la" in question.lower():
|
136 |
return "There are many locations near Los Angeles where you can stargaze: Leo Carrillo State Beach (Malibu), Malibu Creek State Park (Malibu), Griffith Observatory (Griffith Park), Mount Wilson Observatory (Angeles Crest)", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/la.png"
|
137 |
+
if "constellations" in question.lower() or "map" in question.lower():
|
138 |
+
return "https://theskylive.com/planetarium"
|
139 |
|
140 |
relevant_segment = find_relevant_segment(question, segments)
|
141 |
if not relevant_segment:
|