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