Skip to content

Commit

Permalink
venv instructions added for Text2Img
Browse files Browse the repository at this point in the history
  • Loading branch information
ViveK Dutta committed Jan 11, 2024
1 parent 84e1005 commit 82903ab
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
snapshot.jpg
.env
.env
myenv/
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ Wait for few seconds (adjust `const timeout = 6000;` if too slow), and `snapsh

This next part is better than a lot of OCR software for common tasks- in my opinion.

Set up Python environment and install packages:
```
python3 -m venv myenv
source myenv/bin/activate
```

```
pip install -r requirements.txt
```



Edit the following lines in `gpt4v_scraper.py`, replacing with your own website URL and then a system prompt (command to the GPT-4V API) about what to scrape for. See my example:

```
Expand Down
15 changes: 15 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
annotated-types==0.6.0
anyio==4.2.0
certifi==2023.11.17
distro==1.9.0
h11==0.14.0
httpcore==1.0.2
httpx==0.26.0
idna==3.6
openai==1.7.1
pydantic==2.5.3
pydantic_core==2.14.6
python-dotenv==1.0.0
sniffio==1.3.0
tqdm==4.66.1
typing_extensions==4.9.0

0 comments on commit 82903ab

Please sign in to comment.