ysharma HF Staff commited on
Commit
ca83300
·
1 Parent(s): 4911067
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -12,9 +12,23 @@ def txt_fun(txt1, txt2):
12
  #output = Image.open(output_img_path)
13
  #assert original.size == output.size
14
 
15
- def img_fun(img_in):
16
  return demo_inf(img_in) #, fn_index=1)
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  demo = gr.Blocks()
19
 
20
  with demo:
 
12
  #output = Image.open(output_img_path)
13
  #assert original.size == output.size
14
 
15
+ def img_fun1(img_in):
16
  return demo_inf(img_in) #, fn_index=1)
17
 
18
+ #original = Image.open("./c4.jpg")
19
+ #output_img_path = demo_inf("./c4.jpg", fn_index=1)
20
+ #output = Image.open(output_img_path)
21
+ #assert original.size == output.size
22
+
23
+ def img_fun(img_in):
24
+ original = Image.open("./c4.jpg")
25
+ print("after line1")
26
+ output_img_path = demo_inf("./c4.jpg", fn_index=1)
27
+ print("after line1")
28
+ output = Image.open(output_img_path)
29
+ print("after line1")
30
+ return output
31
+
32
  demo = gr.Blocks()
33
 
34
  with demo: