Update app.py
Browse files
app.py
CHANGED
@@ -192,6 +192,37 @@ bot_inputs = [
|
|
192 |
chatbot_component
|
193 |
]
|
194 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
with gr.Blocks() as demo:
|
196 |
gr.HTML(TITLE)
|
197 |
gr.HTML(SUBTITLE)
|
|
|
192 |
chatbot_component
|
193 |
]
|
194 |
|
195 |
+
gr.Examples(
|
196 |
+
fn=bot,
|
197 |
+
inputs=bot_inputs,
|
198 |
+
outputs=[chatbot_component],
|
199 |
+
examples=[
|
200 |
+
[
|
201 |
+
google_key_component,
|
202 |
+
"gemini-1.5-flash-latest",
|
203 |
+
"./examples/example1.jpeg",
|
204 |
+
.4,
|
205 |
+
1024,
|
206 |
+
"",
|
207 |
+
32,
|
208 |
+
1,
|
209 |
+
chatbot_component
|
210 |
+
],
|
211 |
+
[
|
212 |
+
google_key_component,
|
213 |
+
"gemini-1.5-flash-latest",
|
214 |
+
"./examples/example2.jpeg",
|
215 |
+
.4,
|
216 |
+
1024,
|
217 |
+
"",
|
218 |
+
32,
|
219 |
+
1,
|
220 |
+
chatbot_component
|
221 |
+
]
|
222 |
+
],
|
223 |
+
cache_examples="lazy",
|
224 |
+
)
|
225 |
+
|
226 |
with gr.Blocks() as demo:
|
227 |
gr.HTML(TITLE)
|
228 |
gr.HTML(SUBTITLE)
|