SMeyersMrOvkill commited on
Commit
73fddd5
1 Parent(s): 9585f3d
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -97,14 +97,7 @@ def simple_desc(img, prompt):
97
  print(total := total + resp)
98
  return total
99
 
100
- ifc = gr.TabbedInterface(
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&Prompt2Text"
106
- ]
107
- )
108
 
109
  """
110
  with gr.Blocks() as demo:
@@ -138,5 +131,5 @@ with gr.Blocks() as demo:
138
 
139
  demo.launch(debug=True, share=True)
140
  """
141
- with gr.TabbedInterface([ifc], ["Prompt & Image 2 Text"]) as ifc:
142
  ifc.launch(share=False)
 
97
  print(total := total + resp)
98
  return total
99
 
100
+ ifc_imgprompt2text = gr.Interface(simple_desc, inputs=[gr.Image(label="input", type="pil"), gr.Textbox(label="prompt")], outputs=[gr.Textbox(label="prompt")])
 
 
 
 
 
 
 
101
 
102
  """
103
  with gr.Blocks() as demo:
 
131
 
132
  demo.launch(debug=True, share=True)
133
  """
134
+ with gr.TabbedInterface([ifc_imgprompt2text], ["Prompt & Image 2 Text"]) as ifc:
135
  ifc.launch(share=False)