Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
import PIL.Image
|
5 |
import io
|
6 |
|
7 |
-
genai.configure(api_key="
|
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="
|
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()
|