Skip to content

Commit

Permalink
[apps/browser] allow browser agent sessions to run forever
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Sep 11, 2024
1 parent 4e56db7 commit 000b297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/browser/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ async def main():
prompt = h9.input()
site = site_find(prompt)

print(f"Navigating to {site}")
print(f"Starting new browser session. Navigating to {site}")
await page.goto(site)

for i in range(1, 5):
while True:
code = "# No code generated"
try:
code = site_use(prompt, page.url)
Expand Down

0 comments on commit 000b297

Please sign in to comment.