Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
gdown==5.2.0
gradio==5.4.0
ipython==8.12.3
matplotlib==3.9.2
numpy==2.1.2
Copy link
Contributor

@CharlieLeee CharlieLeee Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the pr, I tested on my local machine, and using this version of numpy leads to

ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 2), -r requirements.txt (line 4) and numpy==2.1.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested numpy==2.1.2
    gradio 5.4.0 depends on numpy<3.0 and >=1.0
    matplotlib 3.9.2 depends on numpy>=1.23
    tensorflow 2.15.0 depends on numpy<2.0.0 and >=1.23.5

At the moment we recommend using Google Colab, together with our colab file which includes all necessary dependency installations to help you get started.

This list might work but it's not thoroughly tested:

gdown==5.2.0
gradio==5.4.0
jupyter
matplotlib==3.7.1
numpy==1.26.4
Pillow==10.4.0
pytesseract==0.3.13
Requests==2.32.3
tensorflow==2.15.0
tensorflow_text==2.15.0
tqdm==4.66.6

Pillow==11.0.0
protobuf==5.28.3
pytesseract==0.3.13
Requests==2.32.3
tensorflow==2.15.0
tensorflow_text==2.15.0
tqdm==4.66.6