Spaces:
Sleeping
Sleeping
File size: 760 Bytes
4a27de3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from helpers import query_you_com, query_tavily, query_perplexity #, brave_search_summarization,
def test_queries():
test_query = "How is the weather in Palo Alto, CA?"
print("Testing You.com API:")
# you_com_result = query_you_com(test_query)
you_com_result = query_you_com(test_query)
print(you_com_result['answer'])
print("\nTesting Tavily.com API:")
tavily_result = query_tavily(test_query)
print(tavily_result['answer'])
print("\nTesting Perplexity.ai API:")
perplexity_result = query_perplexity(test_query)
print(perplexity_result)
# print("\nTesting Brave.com API:")
# brave_result = brave_search_summarization(test_query)
# print(brave_result)
if __name__ == "__main__":
test_queries()
|