SMeyersMrOvkill commited on
Commit
590dd97
1 Parent(s): 63da240
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -48,15 +48,6 @@ def respond_batch(question, **imgs):
48
  yield "\n\n\n\n\n\n"
49
  return
50
 
51
- red = Image.new("RGB", (192,192), (255,0,0))
52
- green = Image.new("RGB", (192,192), (0,255,0))
53
- blue = Image.new("RGB", (192,192), (0,0,255))
54
- res = respond_batch("What color is this? Elaborate upon what emotion registers most strongly with you upon viewing. ", imgs=[red, green, blue])
55
- for r in res:
56
- print(r)
57
- if "\n\n\n\n\n\n" in r:
58
- break
59
-
60
  def dual_images(img1: Image):
61
  # Ran once for each img to it's respective output. Output should be detailed str of description/feature extraction/interrogation.
62
  md = MoonDream()
@@ -145,4 +136,4 @@ with gr.Blocks() as demo:
145
  demo.launch(debug=True, share=True)
146
  """
147
  with gr.TabbedInterface([ifc], ["Prompt & Image 2 Text"]) as ifc:
148
- ifc.launch(share=False, server_host="0.0.0.0", server_port=7860)
 
48
  yield "\n\n\n\n\n\n"
49
  return
50
 
 
 
 
 
 
 
 
 
 
51
  def dual_images(img1: Image):
52
  # Ran once for each img to it's respective output. Output should be detailed str of description/feature extraction/interrogation.
53
  md = MoonDream()
 
136
  demo.launch(debug=True, share=True)
137
  """
138
  with gr.TabbedInterface([ifc], ["Prompt & Image 2 Text"]) as ifc:
139
+ ifc.launch(share=False)