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