Skip to content

Commit

Permalink
fix bug with importing generator
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaChaganova authored Jun 28, 2021
1 parent b031189 commit dda2c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pix2art_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import requests
import numpy as np

import models
from models.generator import Generator
from utils import config


@st.cache
def load_model(style_type):
model = models.Generator().to(config.DEVICE)
model = Generator().to(config.DEVICE)
if style_type == 'Ayvazovsky':
PATH = config.PATH_AYVAZOVSKY
else:
Expand Down

0 comments on commit dda2c05

Please sign in to comment.