Spaces:
Sleeping
Sleeping
File size: 405 Bytes
34253f7 753553a 34253f7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import streamlit as st
import torch
from torchvision.utils import make_grid
from torchvision.transforms import ToPILImage
from vegans.generator import Generator
generator = Generator().to('device')
pretrained = torch.load('')
generator.load_state_dict(pretrained)
def main():
st.title("Image Generation")
st.write("Made with GANS from scratch")
if __name__ == '__main__':
main()
|