Skip to content

Commit

Permalink
changed decorator back to generate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasonqi146 committed May 1, 2024
1 parent 7de04aa commit 1417b59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sotopia_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def generate_action(
# return AgentAction(action_type="none", argument="")

@cache
@spaces.GPU(600)
def prepare_model(model_name):
compute_type = torch.float16

Expand Down Expand Up @@ -150,7 +149,7 @@ def obtain_chain_hf(
chain = LLMChain(llm=hf, prompt=chat_prompt_template)
return chain


@spaces.GPU
def generate(
model_name: str,
template: str,
Expand Down

0 comments on commit 1417b59

Please sign in to comment.