Update app.py
Browse files
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 |
-
|
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)
|