SMeyersMrOvkill commited on
Commit
aaa4119
·
1 Parent(s): 1c50ddf
Files changed (1) hide show
  1. app.py +7 -1
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([if_simple_description], ["Prompt & Image 2 Text"]) as ifc:
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)