230602
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								gpt.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								gpt.py
									
									
									
									
									
								
							@@ -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)
 | 
			
		||||
@@ -4,5 +4,4 @@ torchaudio
 | 
			
		||||
pandas
 | 
			
		||||
matplotlib
 | 
			
		||||
numpy
 | 
			
		||||
g4f
 | 
			
		||||
pillow
 | 
			
		||||
		Reference in New Issue
	
	Block a user