SMeyersMrOvkill
commited on
Commit
·
f8f97a6
1
Parent(s):
aaa4119
v0.6
Browse files
app.py
CHANGED
@@ -102,15 +102,6 @@ def xform_image_description(img, inst):
|
|
102 |
def simple_desc(img, prompt):
|
103 |
return md(img, prompt)
|
104 |
|
105 |
-
with gr.Blocks() as if_simple_description:
|
106 |
-
with gr.Row():
|
107 |
-
with gr.Column():
|
108 |
-
simple_img = gr.Image(type="pil")
|
109 |
-
with gr.Column():
|
110 |
-
simple_text = gr.Textbox(label="prompt ( Shift+Enter sends )")
|
111 |
-
simple_btn = gr.Button("Prompt & Image 2 Text")
|
112 |
-
simple_btn.click(simple_desc, inputs=[simple_img, simple_desc], outputs=[simple_desc])
|
113 |
-
|
114 |
ifc = gr.TabbedInterface(
|
115 |
[
|
116 |
gr.Interface(simple_dec, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")])
|
|
|
102 |
def simple_desc(img, prompt):
|
103 |
return md(img, prompt)
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
ifc = gr.TabbedInterface(
|
106 |
[
|
107 |
gr.Interface(simple_dec, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")])
|