RoyalEagle commited on
Commit
61e2e51
1 Parent(s): 1545e00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  #clone https://github.com/openai/CLIP
2
  os.system("git clone https://github.com/openai/CLIP")
3
  os.system("git clone https://github.com/CompVis/taming-transformers.git")
@@ -5,13 +12,8 @@ os.system("git clone https://github.com/CompVis/taming-transformers.git")
5
  #clone https://github.com/CompVis/taming-transformers.git
6
  os.system("git clone https://github.com/dribnet/pixray")
7
 
8
- import sys
9
  sys.path.append("pixray")
10
 
11
- import gradio as gr
12
- import torch
13
- import pixray
14
-
15
  # Define the main function
16
  def generate(prompt, quality, aspect):
17
  torch.cuda.empty_cache()
 
1
+ import os
2
+ import sys
3
+
4
+
5
+ import gradio as gr
6
+ import torch
7
+ import pixray
8
  #clone https://github.com/openai/CLIP
9
  os.system("git clone https://github.com/openai/CLIP")
10
  os.system("git clone https://github.com/CompVis/taming-transformers.git")
 
12
  #clone https://github.com/CompVis/taming-transformers.git
13
  os.system("git clone https://github.com/dribnet/pixray")
14
 
 
15
  sys.path.append("pixray")
16
 
 
 
 
 
17
  # Define the main function
18
  def generate(prompt, quality, aspect):
19
  torch.cuda.empty_cache()