Update app.py
Browse files
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 |
-
|
|
|
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 |
|