SMeyersMrOvkill
commited on
Commit
·
7cda445
1
Parent(s):
590dd97
appy
Browse files
app.py
CHANGED
@@ -94,12 +94,15 @@ def simple_desc(img, prompt):
|
|
94 |
gen = md(img, prompt)
|
95 |
total = ""
|
96 |
for resp in gen:
|
97 |
-
|
98 |
-
return
|
99 |
|
100 |
ifc = gr.Interface(
|
101 |
[
|
102 |
gr.Interface(simple_desc, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")], outputs=[gr.Textbox(label="prompt")])
|
|
|
|
|
|
|
103 |
]
|
104 |
)
|
105 |
|
|
|
94 |
gen = md(img, prompt)
|
95 |
total = ""
|
96 |
for resp in gen:
|
97 |
+
print(total := total + resp)
|
98 |
+
return total
|
99 |
|
100 |
ifc = gr.Interface(
|
101 |
[
|
102 |
gr.Interface(simple_desc, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")], outputs=[gr.Textbox(label="prompt")])
|
103 |
+
],
|
104 |
+
[
|
105 |
+
"Img & Prompt 2 Text"
|
106 |
]
|
107 |
)
|
108 |
|