Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgross committed Dec 9, 2022
1 parent 91988d7 commit fa0dbbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
* You'll need to run WhatsApp from a phone number using the golang library I'm using.
* You'll run a dedicated browser in another window that's controlling ChatGPT.
* Two terminals: `go run main.go`, and `python server.py`. I am extremely doubtful they will work for you on the first run.
* You can also try `multichat.py` if you want to watch two ChatGPTs talk to each other.
* This marks the end of the readme file; it is a bit sparse; thankfully the code is too! Just tuck in if you can... and I will try to add more here later.
7 changes: 4 additions & 3 deletions multichat.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Get ChatGPT to talk to itself."""

import os
import sys
import subprocess
import requests

# Launch two instances of server.py
# python3 server.py --port 5001 --profile /tmp/chat1
# python3 server.py --port 5002 --profile /tmp/chat2

metaprompt = "Now make that funnier."
chat1 = requests.get("http://localhost:5001/chat?q=%s" % "Teach me about quantum mechanics in a 140 characters or less.")
while True:
Expand Down

0 comments on commit fa0dbbd

Please sign in to comment.