sohoso commited on
Commit
8c4109f
·
verified ·
1 Parent(s): 49a6994

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import numpy as np
4
  import PIL.Image
5
  import io
6
 
7
- genai.configure(api_key="AIzaSyAj-b3sO_wUguMdpXWScxKzMHxb8C5cels")
8
 
9
  def ImageChat(image, prompt="Analyze"):
10
  # Check image file and convert to a PIL Image object
@@ -94,7 +94,7 @@ def ImageChat(image, prompt="Analyze"):
94
 
95
  app = gr.Interface(
96
  fn=ImageChat,
97
- inputs=[gr.Image(label="Image"), gr.Textbox(label="Prompt", value="Analyze")],
98
  outputs=gr.Textbox(label="Response"),
99
  title = "",
100
  theme=gr.themes.Soft()
 
4
  import PIL.Image
5
  import io
6
 
7
+ genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
8
 
9
  def ImageChat(image, prompt="Analyze"):
10
  # Check image file and convert to a PIL Image object
 
94
 
95
  app = gr.Interface(
96
  fn=ImageChat,
97
+ inputs=[gr.Image(label=""), gr.Textbox(label="Prompt", value="Analyze")],
98
  outputs=gr.Textbox(label="Response"),
99
  title = "",
100
  theme=gr.themes.Soft()