cedpsam commited on
Commit
2455ada
·
verified ·
1 Parent(s): 4208cfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -16,13 +16,12 @@ def interrogate(img):
16
 
17
  client = Client("https://pharmapsychotic-clip-interrogator.hf.space/")
18
  result = client.predict(
19
- img, # str (filepath or URL to image)
20
-
21
  "ViT-L (best for Stable Diffusion 1.*)", # str (Option from: ['ViT-L (best for Stable Diffusion 1.*)'])
22
  "best", # str in 'Mode' Radio component
23
  fn_index=3
24
  )
25
- print(result)
26
  def rountrip(img):
27
  prompt=interrogate(img)
28
  return generate_img(prompt)
 
16
 
17
  client = Client("https://pharmapsychotic-clip-interrogator.hf.space/")
18
  result = client.predict(
19
+ img, # str (filepath or URL to image)
 
20
  "ViT-L (best for Stable Diffusion 1.*)", # str (Option from: ['ViT-L (best for Stable Diffusion 1.*)'])
21
  "best", # str in 'Mode' Radio component
22
  fn_index=3
23
  )
24
+ return result
25
  def rountrip(img):
26
  prompt=interrogate(img)
27
  return generate_img(prompt)