Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
import requests
|
3 |
-
|
4 |
import gradio as gr
|
5 |
import pickle
|
6 |
import random
|
@@ -12,7 +12,7 @@ if not os.path.exists('models.pickle'):
|
|
12 |
response = requests.get(url, stream=True)
|
13 |
|
14 |
with open('models.pickle', "wb") as handle:
|
15 |
-
for data in
|
16 |
handle.write(data)
|
17 |
|
18 |
|
|
|
1 |
import os
|
2 |
import requests
|
3 |
+
|
4 |
import gradio as gr
|
5 |
import pickle
|
6 |
import random
|
|
|
12 |
response = requests.get(url, stream=True)
|
13 |
|
14 |
with open('models.pickle', "wb") as handle:
|
15 |
+
for data in response.iter_content():
|
16 |
handle.write(data)
|
17 |
|
18 |
|