Spaces:
Runtime error
Runtime error
Commit
·
d0fdfbe
1
Parent(s):
8c3f425
slight update
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ from langchain.callbacks.manager import CallbackManagerForLLMRun
|
|
72 |
|
73 |
|
74 |
class GPTRemote(LLM):
|
75 |
-
n
|
76 |
|
77 |
@property
|
78 |
def _llm_type(self) -> str:
|
@@ -80,7 +80,7 @@ class GPTRemote(LLM):
|
|
80 |
|
81 |
def _call(
|
82 |
self,
|
83 |
-
prompt,
|
84 |
stop: Optional [List[str]] = None,
|
85 |
run_manager: Optional[CallbackManagerForLLMRun] = None,
|
86 |
**kwargs: Any
|
@@ -93,7 +93,7 @@ class GPTRemote(LLM):
|
|
93 |
def _identifying_params(self) -> Mapping[str, Any]:
|
94 |
return {"input", self.n}
|
95 |
|
96 |
-
GPTfake = GPTRemote()
|
97 |
|
98 |
|
99 |
async def start_playwright(question: str):
|
|
|
72 |
|
73 |
|
74 |
class GPTRemote(LLM):
|
75 |
+
n: int
|
76 |
|
77 |
@property
|
78 |
def _llm_type(self) -> str:
|
|
|
80 |
|
81 |
def _call(
|
82 |
self,
|
83 |
+
prompt: str,
|
84 |
stop: Optional [List[str]] = None,
|
85 |
run_manager: Optional[CallbackManagerForLLMRun] = None,
|
86 |
**kwargs: Any
|
|
|
93 |
def _identifying_params(self) -> Mapping[str, Any]:
|
94 |
return {"input", self.n}
|
95 |
|
96 |
+
GPTfake = GPTRemote(n=0)
|
97 |
|
98 |
|
99 |
async def start_playwright(question: str):
|