thefcraft commited on
Commit
13745a3
·
1 Parent(s): 32d263f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -13
app.py CHANGED
@@ -1,21 +1,8 @@
1
- import os
2
- import requests
3
-
4
  import gradio as gr
5
  import pickle
6
  import random
7
  import numpy as np
8
 
9
- url = "https://huggingface.co/thefcraft/prompt-generator-stable-diffusion/resolve/main/models.pickle"
10
-
11
- 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 response.iter_content():
16
- handle.write(data)
17
-
18
-
19
  with open('models.pickle', 'rb')as f:
20
  models = pickle.load(f)
21
 
 
 
 
 
1
  import gradio as gr
2
  import pickle
3
  import random
4
  import numpy as np
5
 
 
 
 
 
 
 
 
 
 
 
6
  with open('models.pickle', 'rb')as f:
7
  models = pickle.load(f)
8