analist commited on
Commit
1d8689a
·
1 Parent(s): 644ca69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,9 +4,11 @@ from PIL import Image
4
 
5
  st.title('Take your picture to the next level')
6
 
 
7
  def upscale(model_choice):
8
  if model_choice == "EDSR":
9
- model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=choice)
 
10
  else:
11
  st.text('Not supported yet. Comeback soon for fun releases')
12
 
 
4
 
5
  st.title('Take your picture to the next level')
6
 
7
+ @st.cache_data
8
  def upscale(model_choice):
9
  if model_choice == "EDSR":
10
+ from transformers import AutoModel
11
+ model = AutoModel.from_pretrained("eugenesiow/edsr-base")
12
  else:
13
  st.text('Not supported yet. Comeback soon for fun releases')
14