Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
0b4b0ed
1
Parent(s): 4309ee9
fix
Browse files
llm.py
CHANGED
|
@@ -23,7 +23,7 @@ class LLM:
|
|
| 23 |
class Claude3Opus(LLM):
|
| 24 |
def __init__(self):
|
| 25 |
super().__init__(context_length=200000, api_endpoint="https://api.anthropic.com", max_output_tokens=4096)
|
| 26 |
-
anthropic.api_key = "YOUR_ANTHROPIC_API_KEY"
|
| 27 |
|
| 28 |
def send_question(self, question):
|
| 29 |
num_tokens = self.count_tokens(question)
|
|
@@ -45,7 +45,7 @@ class Claude3Opus(LLM):
|
|
| 45 |
class Gemini15(LLM):
|
| 46 |
def __init__(self):
|
| 47 |
super().__init__(context_length=256000, api_endpoint="https://generativelanguage.googleapis.com", max_output_tokens=8192)
|
| 48 |
-
palm.configure(api_key="YOUR_GOOGLE_API_KEY")
|
| 49 |
|
| 50 |
def send_question(self, question):
|
| 51 |
num_tokens = self.count_tokens(question)
|
|
|
|
| 23 |
class Claude3Opus(LLM):
|
| 24 |
def __init__(self):
|
| 25 |
super().__init__(context_length=200000, api_endpoint="https://api.anthropic.com", max_output_tokens=4096)
|
| 26 |
+
anthropic.api_key = "YOUR_ANTHROPIC_API_KEY" #FIXME
|
| 27 |
|
| 28 |
def send_question(self, question):
|
| 29 |
num_tokens = self.count_tokens(question)
|
|
|
|
| 45 |
class Gemini15(LLM):
|
| 46 |
def __init__(self):
|
| 47 |
super().__init__(context_length=256000, api_endpoint="https://generativelanguage.googleapis.com", max_output_tokens=8192)
|
| 48 |
+
palm.configure(api_key="YOUR_GOOGLE_API_KEY") #FIXME
|
| 49 |
|
| 50 |
def send_question(self, question):
|
| 51 |
num_tokens = self.count_tokens(question)
|
parse.py
CHANGED
|
@@ -40,6 +40,6 @@ def cleanup(soup):
|
|
| 40 |
def parse(filepath):
|
| 41 |
soup = cleanup(BeautifulSoup(open(filepath).read(), 'html.parser'))
|
| 42 |
logger.debug(f"Parsed {filepath}")
|
| 43 |
-
return soup
|
| 44 |
|
| 45 |
|
|
|
|
| 40 |
def parse(filepath):
|
| 41 |
soup = cleanup(BeautifulSoup(open(filepath).read(), 'html.parser'))
|
| 42 |
logger.debug(f"Parsed {filepath}")
|
| 43 |
+
return soup
|
| 44 |
|
| 45 |
|