Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Jul 1, 2024
1 parent a27ceb3 commit 6b78005
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions API_DEMO_CHAT.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ def run_rnn(ctx):

return out


init_ctx = "User: hi" + "\n\n"
init_ctx += "Assistant: Hi. I am your assistant and I will provide expert full response in full details. Please feel free to ask any question and I will always answer it." + "\n\n"

run_rnn(init_ctx)

print(init_ctx, end="")
if STATE_NAME == None: # use initial prompt if we are not loading a state
init_ctx = "User: hi" + "\n\n"
init_ctx += "Assistant: Hi. I am your assistant and I will provide expert full response in full details. Please feel free to ask any question and I will always answer it." + "\n\n"
run_rnn(init_ctx)
print(init_ctx, end="")

while True:
msg = prompt("User: ")
Expand Down

0 comments on commit 6b78005

Please sign in to comment.