Skip to content

Commit

Permalink
llama_messenger.py update
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffxtang committed Dec 8, 2023
1 parent 826776b commit 3006014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo_apps/llama_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import requests
import json

os.environ["REPLICATE_API_TOKEN"] = "r8_dR6bALmiSCZCZRs3JKuxkMYxkEW8b2Z0oDwCm"
os.environ["REPLICATE_API_TOKEN"] = "<your replicate api token>"
llama2_13b_chat = "meta/llama-2-13b-chat:f4e2de70d66816a838a89eeeb621910adffb0dd0baba3976c96980970978018d"

llm = Replicate(
Expand All @@ -32,7 +32,7 @@ def msgrcvd_pager():
'recipient': '{"id": ' + sender + '}',
'message': json.dumps({'text': answer}),
'messaging_type': 'RESPONSE',
'access_token': 'EAAEox5Brim0BOzT7xduQmLPmV5JEYC0wyfZBPE308kOPOUr02GITwIeABUT0ffvoHm2ktusKfXgwoZAQiaI6ZAobAhtGQjsYsm7VzCbVBLQjzKSMyKlmI2ZCFtZAZAEuYZCIZC2YMlCpBhjTbr1Tr7HC7Eom7EPchFpOWAGWktN1PCik17Q1KWCD1ZAdSLBQS6T1Jk4wmZA54eO3MCgQZDZ'
'access_token': "<your page access token>"
}
headers = {
'Content-Type': 'application/json'
Expand Down

0 comments on commit 3006014

Please sign in to comment.