Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from pipeline import run_pipeline
|
|
3 |
def ask_dailywellness(query: str) -> str:
|
4 |
# Ensure that the query passed to run_with_chain is a valid string
|
5 |
if isinstance(query, str):
|
6 |
-
return
|
7 |
else:
|
8 |
# If for some reason the query is not a string, return an error message
|
9 |
return "Invalid input. Please enter a valid query."
|
|
|
3 |
def ask_dailywellness(query: str) -> str:
|
4 |
# Ensure that the query passed to run_with_chain is a valid string
|
5 |
if isinstance(query, str):
|
6 |
+
return run_pipeline(query)
|
7 |
else:
|
8 |
# If for some reason the query is not a string, return an error message
|
9 |
return "Invalid input. Please enter a valid query."
|