Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import numpy as np
|
|
4 |
import PIL.Image
|
5 |
import io, os
|
6 |
|
7 |
-
# genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
|
8 |
api_key = os.environ["API_TOKEN"]
|
9 |
genai.configure(api_key=api_key)
|
10 |
|
@@ -96,7 +95,7 @@ def ImageChat(image, prompt="Analyze"):
|
|
96 |
|
97 |
app = gr.Interface(
|
98 |
fn=ImageChat,
|
99 |
-
inputs=[gr.Image(show_label=False), gr.Textbox(label="Your Prompt", value=
|
100 |
outputs=gr.Textbox(label="Response",show_copy_button=True),
|
101 |
title = "",
|
102 |
theme=gr.themes.Soft()
|
|
|
4 |
import PIL.Image
|
5 |
import io, os
|
6 |
|
|
|
7 |
api_key = os.environ["API_TOKEN"]
|
8 |
genai.configure(api_key=api_key)
|
9 |
|
|
|
95 |
|
96 |
app = gr.Interface(
|
97 |
fn=ImageChat,
|
98 |
+
inputs=[gr.Image(show_label=False), gr.Textbox(label="Your Prompt", value="Analyze")],
|
99 |
outputs=gr.Textbox(label="Response",show_copy_button=True),
|
100 |
title = "",
|
101 |
theme=gr.themes.Soft()
|