Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def interrogate(img):
|
|
34 |
return result
|
35 |
def rountrip(img):
|
36 |
prompt=interrogate(img)
|
37 |
-
print(
|
38 |
# url=pollinations_url_seedless(prompt)
|
39 |
-
return generate_img(prompt),prompt
|
40 |
|
41 |
demo = gr.Interface(rountrip, gr.Image(type= 'filepath'),[gr.Image(type= 'filepath'),"textbox"])
|
42 |
demo.launch()
|
|
|
34 |
return result
|
35 |
def rountrip(img):
|
36 |
prompt=interrogate(img)
|
37 |
+
print(prompt)
|
38 |
# url=pollinations_url_seedless(prompt)
|
39 |
+
return generate_img(prompt),prompt
|
40 |
|
41 |
demo = gr.Interface(rountrip, gr.Image(type= 'filepath'),[gr.Image(type= 'filepath'),"textbox"])
|
42 |
demo.launch()
|