Spaces:
Runtime error
Runtime error
Commit
·
18fff49
1
Parent(s):
526838f
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
-
import
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}")
|