Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -129,11 +129,11 @@ def query_model(question):
|
|
129 |
return "Welcome to Starfinder! Ask me anything about outer space, stargazing, and upcoming astronomical events.", None
|
130 |
|
131 |
if "san francisco" in question.lower():
|
132 |
-
return "There are many locations near San Francisco where you can stargaze: Lick Observatory (Mount Hamilton), Chabot Space & Science Center (Oakland) , Twin Peaks (SF), Sibley Volcanic National Reserve (Oakland), Mount Tamalpais (Marin), San Francisco State University Observatory (SF), Mount Diablo (East Bay)!", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/
|
133 |
if "sacramento" in question.lower():
|
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.",
|
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)",
|
137 |
|
138 |
relevant_segment = find_relevant_segment(question, segments)
|
139 |
if not relevant_segment:
|
@@ -159,8 +159,6 @@ topics = """
|
|
159 |
"""
|
160 |
|
161 |
|
162 |
-
def display_title():
|
163 |
-
return "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/sacramento.png"
|
164 |
|
165 |
# Setup the Gradio Blocks interface with custom layout components
|
166 |
with gr.Blocks(theme='earneleh/paris') as demo:
|
|
|
129 |
return "Welcome to Starfinder! Ask me anything about outer space, stargazing, and upcoming astronomical events.", None
|
130 |
|
131 |
if "san francisco" in question.lower():
|
132 |
+
return "There are many locations near San Francisco where you can stargaze: Lick Observatory (Mount Hamilton), Chabot Space & Science Center (Oakland) , Twin Peaks (SF), Sibley Volcanic National Reserve (Oakland), Mount Tamalpais (Marin), San Francisco State University Observatory (SF), Mount Diablo (East Bay)!", "https://huggingface.co/spaces/Starfinders/Stars/resolve/main/sf.png"
|
133 |
if "sacramento" in question.lower():
|
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:
|
|
|
159 |
"""
|
160 |
|
161 |
|
|
|
|
|
162 |
|
163 |
# Setup the Gradio Blocks interface with custom layout components
|
164 |
with gr.Blocks(theme='earneleh/paris') as demo:
|