SMeyersMrOvkill
commited on
Commit
·
aaa4119
1
Parent(s):
1c50ddf
v0.6
Browse files
app.py
CHANGED
@@ -111,6 +111,12 @@ with gr.Blocks() as if_simple_description:
|
|
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 |
"""
|
115 |
with gr.Blocks() as demo:
|
116 |
|
@@ -143,5 +149,5 @@ with gr.Blocks() as demo:
|
|
143 |
|
144 |
demo.launch(debug=True, share=True)
|
145 |
"""
|
146 |
-
with gr.TabbedInterface([
|
147 |
ifc.launch(share=False, server_host="0.0.0.0", server_port=7860)
|
|
|
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")])
|
117 |
+
]
|
118 |
+
)
|
119 |
+
|
120 |
"""
|
121 |
with gr.Blocks() as demo:
|
122 |
|
|
|
149 |
|
150 |
demo.launch(debug=True, share=True)
|
151 |
"""
|
152 |
+
with gr.TabbedInterface([ifc], ["Prompt & Image 2 Text"]) as ifc:
|
153 |
ifc.launch(share=False, server_host="0.0.0.0", server_port=7860)
|