abdullah040 commited on
Commit
18fff49
·
1 Parent(s): 526838f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -1,4 +1,11 @@
1
- import subprocess
2
 
3
- command = "git clone https://gpt4all.io/models/ggml-mpt-7b-chat.bin"
4
- subprocess.run(command, shell=True)
 
 
 
 
 
 
 
 
1
+ import urllib.request
2
 
3
+ url = 'https://gpt4all.io/models/ggml-mpt-7b-chat.bin'
4
+ filename = 'ggml-mpt-7b-chat.bin'
5
+
6
+ try:
7
+ # Download the file
8
+ urllib.request.urlretrieve(url, filename)
9
+ print(f"Successfully downloaded '{filename}'")
10
+ except Exception as e:
11
+ print(f"An error occurred while downloading the file: {e}")