From 40a200c924a3aef4c431e31546dde9a1172aa1d6 Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 18 Jul 2023 11:04:29 -0400 Subject: [PATCH] clean up Former-commit-id: 70078d8845ab5af847bffbe5192fad563ffabb3e --- swarms/utils/llm.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/swarms/utils/llm.py b/swarms/utils/llm.py index 21b9f0d4..0180ec74 100644 --- a/swarms/utils/llm.py +++ b/swarms/utils/llm.py @@ -52,13 +52,13 @@ class LLM: logger.error("Failed to generate response: %s", e) raise -# example -from swarms.utils.llm import LLM -llm_instance = LLM(openai_api_key="your_openai_key") -result = llm_instance.run("Who won the FIFA World Cup in 1998?") -print(result) +# # example +# from swarms.utils.llm import LLM +# llm_instance = LLM(openai_api_key="your_openai_key") +# result = llm_instance.run("Who won the FIFA World Cup in 1998?") +# print(result) -# using HuggingFaceHub -llm_instance = LLM(hf_repo_id="google/flan-t5-xl", hf_api_token="your_hf_api_token") -result = llm_instance.run("Who won the FIFA World Cup in 1998?") -print(result) +# # using HuggingFaceHub +# llm_instance = LLM(hf_repo_id="google/flan-t5-xl", hf_api_token="your_hf_api_token") +# result = llm_instance.run("Who won the FIFA World Cup in 1998?") +# print(result)