Spaces:
Runtime error
Runtime error
Commit
·
45e0238
1
Parent(s):
150bfee
update llm
Browse files
app.py
CHANGED
@@ -89,26 +89,26 @@ class GPTRemote(LLM):
|
|
89 |
**kwargs: Any
|
90 |
) -> str:
|
91 |
print("prompt:", prompt)
|
92 |
-
|
93 |
-
|
94 |
# output = "test custom llm"
|
95 |
-
|
96 |
|
97 |
@property
|
98 |
def _identifying_params(self) -> Mapping[str, Any]:
|
99 |
return [("n", self.n)]
|
100 |
|
101 |
-
def _generate(
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
) -> LLMResult:
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
|
113 |
GPTfake = GPTRemote(n=0)
|
114 |
|
|
|
89 |
**kwargs: Any
|
90 |
) -> str:
|
91 |
print("prompt:", prompt)
|
92 |
+
|
93 |
+
output = asyncio.run(start_playwright(prompt))
|
94 |
# output = "test custom llm"
|
95 |
+
return output
|
96 |
|
97 |
@property
|
98 |
def _identifying_params(self) -> Mapping[str, Any]:
|
99 |
return [("n", self.n)]
|
100 |
|
101 |
+
# def _generate(
|
102 |
+
# self,
|
103 |
+
# prompts: List[str],
|
104 |
+
# stop: Optional[List[str]] = None,
|
105 |
+
# run_manager: Optional[CallbackManagerForLLMRun] = None,
|
106 |
+
# **kwargs: Any,
|
107 |
+
# ) -> LLMResult:
|
108 |
+
# result = LLMResult()
|
109 |
+
# result.generations = [Generation("test result")]
|
110 |
+
# return result
|
111 |
+
# """Run the LLM on the given prompts."""
|
112 |
|
113 |
GPTfake = GPTRemote(n=0)
|
114 |
|