Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,6 @@ import google.generativeai as genai
|
|
5 |
import gradio as gr
|
6 |
from PIL import Image
|
7 |
|
8 |
-
|
9 |
-
|
10 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
11 |
|
12 |
IMAGE_WIDTH = 512
|
@@ -81,9 +79,6 @@ user_inputs = [text_prompt_component, chatbot_component]
|
|
81 |
bot_inputs = [google_key_component, image_prompt_component, temperature_component, max_output_tokens_component, stop_sequences_component, top_k_component, top_p_component, chatbot_component]
|
82 |
|
83 |
with gr.Blocks() as demo:
|
84 |
-
gr.HTML(TITLE)
|
85 |
-
gr.HTML(SUBTITLE)
|
86 |
-
gr.HTML(DUPLICATE)
|
87 |
with gr.Column():
|
88 |
google_key_component.render()
|
89 |
with gr.Row():
|
|
|
5 |
import gradio as gr
|
6 |
from PIL import Image
|
7 |
|
|
|
|
|
8 |
GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
|
9 |
|
10 |
IMAGE_WIDTH = 512
|
|
|
79 |
bot_inputs = [google_key_component, image_prompt_component, temperature_component, max_output_tokens_component, stop_sequences_component, top_k_component, top_p_component, chatbot_component]
|
80 |
|
81 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
82 |
with gr.Column():
|
83 |
google_key_component.render()
|
84 |
with gr.Row():
|