johnowhitaker commited on
Commit
931341e
1 Parent(s): ba1d8b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -1,5 +1,24 @@
1
  import gradio as gr
 
 
 
 
 
 
 
 
 
 
 
 
2
  import numpy as np
 
 
 
 
 
 
 
3
 
4
  def generate(text, n_steps):
5
  #todo
 
1
  import gradio as gr
2
+
3
+ import torch
4
+ import torch.nn as nn
5
+ import torch.nn.functional as F
6
+ from torch.autograd import Variable
7
+ import torch.optim as optim
8
+
9
+ import kornia.augmentation as K
10
+ from CLIP import clip
11
+ from torchvision import transforms
12
+
13
+ from PIL import Image
14
  import numpy as np
15
+ import math
16
+
17
+ from matplotlib import pyplot as plt
18
+ from fastprogress.fastprogress import master_bar, progress_bar
19
+ from IPython.display import HTML
20
+ from base64 import b64encode
21
+
22
 
23
  def generate(text, n_steps):
24
  #todo