Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Jan 19, 2024
1 parent 106b62d commit 8cc835c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chart/web-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from config import AppSettings

settings = AppSettings.load("./settings.yml")
# print(settings)

backend_url = str(settings.backend_url)
wait_for_backend(backend_url)
Expand Down Expand Up @@ -39,7 +38,7 @@ def inference(message, history):
if chunk:
data = json.loads(chunk.decode("utf-8"))
output = data["text"][0]
# Manually trim the context from output
# Manually trim the context from output if present
prompt_template_lines = settings.prompt_template.splitlines()
if len(prompt_template_lines) > 0:
delimiter = prompt_template_lines[-1]
Expand Down Expand Up @@ -86,6 +85,5 @@ def inference(message, history):
clear_btn="Clear",
analytics_enabled=False,
theme=theme,
# Overwrite title color to contrast with
css=css_overrides,
).queue().launch(server_name="0.0.0.0")

0 comments on commit 8cc835c

Please sign in to comment.