xp3857 commited on
Commit
8646ee7
1 Parent(s): c649d10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,17 +4,17 @@ import os
4
 
5
  name2 = "runwayml/stable-diffusion-v1-5"
6
  model = gr.Interface.load(f"models/{name2}")
7
-
8
-
9
  o = os.getenv("P")
10
- h = "Q"
11
  def ac():
 
12
  def im_fn(put,fac=""):
13
  if h == o:
14
  put = f"{put}{fac}"
15
  fac = f"{fac} "
16
  return model(put),fac
17
  elif h != o:
 
18
  return(None,None)
19
  def cl_fac():
20
  return ""
@@ -36,5 +36,5 @@ def ac():
36
  out3.change(im_fn,[put,fac_b],[out4,fac_b])
37
 
38
 
39
- b.queue(concurrency_count=100).launch()
40
  ac()
 
4
 
5
  name2 = "runwayml/stable-diffusion-v1-5"
6
  model = gr.Interface.load(f"models/{name2}")
 
 
7
  o = os.getenv("P")
8
+
9
  def ac():
10
+ h=gr.Textbox()
11
  def im_fn(put,fac=""):
12
  if h == o:
13
  put = f"{put}{fac}"
14
  fac = f"{fac} "
15
  return model(put),fac
16
  elif h != o:
17
+ print ("Enter Password")
18
  return(None,None)
19
  def cl_fac():
20
  return ""
 
36
  out3.change(im_fn,[put,fac_b],[out4,fac_b])
37
 
38
 
39
+ b.queue(concurrency_count=100).launch(show_api=False)
40
  ac()