Skip to content

Commit

Permalink
add authorized paths to gradio
Browse files Browse the repository at this point in the history
  • Loading branch information
lyie28 committed Aug 26, 2024
1 parent fe3eeb0 commit bf37b41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lavague-core/lavague/core/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ def execute_instruction_gradio(self, instruction: str, action_engine: Any):
except:
pass
start = time.time()
authorized_xpaths = extract_xpaths_from_html(llm_context)
prompt = self.prompt_template.format(
context_str=llm_context, query_str=instruction
context_str=llm_context,
query_str=instruction,
authorized_xpaths=authorized_xpaths,
)
response = self.llm.complete(prompt).text
end = time.time()
Expand Down

0 comments on commit bf37b41

Please sign in to comment.