OuroborosM commited on
Commit
45e0238
·
1 Parent(s): 150bfee

update llm

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -89,26 +89,26 @@ class GPTRemote(LLM):
89
  **kwargs: Any
90
  ) -> str:
91
  print("prompt:", prompt)
92
- if stop :
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
 
 
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