Skip to content

Commit

Permalink
Merge pull request #151 from dbpunk-labs/142-bug-fail-to-start-og-com…
Browse files Browse the repository at this point in the history
…mand-in-gitpod

fix: adjust the sleep time
  • Loading branch information
imotai authored Oct 10, 2023
2 parents ee3f174 + 5165516 commit e08daa1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions agent/src/og_agent/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* If the code has any display data, save it as a file and add it to the saved_filenames of function `execute_python_code`
* You must try to correct your code when you get errors from the output
* Your code should produce output in Markdown format. For instance, if you're using a Pandas DataFrame to display data, make sure to utilize the to_markdown function.
* You must preview one row of the data when using pandas to process data
Thirdly, the programming environment used to execute code has the following capabilities
* Internet connection: This allows the programming environment to access online resources, such as documentation, libraries, and code repositories.
Expand Down
2 changes: 1 addition & 1 deletion chat/src/og_terminal/terminal_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def run_app(name, sdk, session, console, values, filedir=None):
def gen_app_panel(app):
desc = app.desc if app.desc else ""
date_str = datetime.fromtimestamp(app.ctime).strftime("%m/%d/%Y")
markdonw = f"""### {app.desc}{app.name}
markdonw = f"""### {app.desc} {app.name}
created at {date_str} with {app.language}"""
style = Style(bgcolor="#2e2e2e")
return Panel(Markdown(markdonw), box=box.SIMPLE, title_align="left", style=style)
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04
RUN apt update
RUN apt install -y python3 python3-pip
RUN pip install -U og_proto og_sdk og_agent og_kernel hapless
RUN adduser octogen
RUN useradd -ms /bin/bash octogen
ADD server /bin/
ADD start_all.sh /bin/
ADD add_endpoint.sh /bin/
2 changes: 1 addition & 1 deletion up/src/og_up/up.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def start_service(
result_code = code
output += chunk
pass
time.sleep(4)
time.sleep(6)
segments.pop()
if result_code == 0:
segments.append(("✅", "Start octogen service", ""))
Expand Down

0 comments on commit e08daa1

Please sign in to comment.