JOY-Huang commited on
Commit
9052993
1 Parent(s): cc7ea5e

fix examples dir

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,8 +1,5 @@
1
  import os
2
- import sys
3
- print(os.path.dirname(__file__))
4
- print(os.listdir(os.path.dirname(__file__)))
5
- sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
6
 
7
  import random
8
  import torch
@@ -11,6 +8,7 @@ import spaces
11
  import numpy as np
12
  import gradio as gr
13
  from PIL import Image
 
14
 
15
  from diffusers import DDPMScheduler
16
  from schedulers.lcm_single_step_scheduler import LCMSingleStepScheduler
 
1
  import os
2
+ print(os.listdir('examples'))
 
 
 
3
 
4
  import random
5
  import torch
 
8
  import numpy as np
9
  import gradio as gr
10
  from PIL import Image
11
+ Image.open("examples/wukong.png")
12
 
13
  from diffusers import DDPMScheduler
14
  from schedulers.lcm_single_step_scheduler import LCMSingleStepScheduler