From e03a7de8f9b1c1bf00e2cdc69198e5d1cb7c4dab Mon Sep 17 00:00:00 2001 From: Wolves Date: Sun, 2 Jun 2024 21:57:10 +0800 Subject: [PATCH] 230602 --- README.md | 4 +--- gpt.py | 11 ----------- requirements.txt | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 gpt.py diff --git a/README.md b/README.md index e87be84..b64bfdc 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,7 @@ conda activate pt # 安装 pytorch v1.12版本已经正式支持了用于mac m1芯片gpu加速的mps后端 conda install pytorch::pytorch torchvision torchaudio -c pytorch -y -pip install numpy -pip install pandas -pip install matplotlib +pip install -r requirements ``` ## gpt4free diff --git a/gpt.py b/gpt.py deleted file mode 100644 index 4a7a0a2..0000000 --- a/gpt.py +++ /dev/null @@ -1,11 +0,0 @@ -from g4f.client import Client - -content = "张量在机器学习中的主要用途" - - -client = Client() -response = client.chat.completions.create( - model="gpt-4o", - messages=[{"role": "user", "content": content}], -) -print(response.choices[0].message.content) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 31d4643..60e304e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,4 @@ torchaudio pandas matplotlib numpy -g4f pillow \ No newline at end of file