Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,7 @@ generation_config = {
|
|
12 |
"max_output_tokens": 4096,
|
13 |
}
|
14 |
|
15 |
-
emoji = ['1.png','2,png','3.png','4.png','5.png']
|
16 |
|
17 |
-
a = random.choice(emoji)
|
18 |
|
19 |
model = genai.GenerativeModel(model_name="gemini-pro",generation_config=generation_config)
|
20 |
|
@@ -25,7 +23,7 @@ def generate(prompt):
|
|
25 |
|
26 |
llava=gr.ChatInterface(
|
27 |
fn=generate,
|
28 |
-
chatbot=gr.Chatbot(show_label=False, avatar_images=(
|
29 |
title="LLaVa-2",
|
30 |
description="This Is Official Demo Of ```LLaVa-2```. ```History/context``` memory does not work in this demo",
|
31 |
concurrency_limit=20,#layout="vertical",#bubble_full_width=False
|
|
|
12 |
"max_output_tokens": 4096,
|
13 |
}
|
14 |
|
|
|
15 |
|
|
|
16 |
|
17 |
model = genai.GenerativeModel(model_name="gemini-pro",generation_config=generation_config)
|
18 |
|
|
|
23 |
|
24 |
llava=gr.ChatInterface(
|
25 |
fn=generate,
|
26 |
+
chatbot=gr.Chatbot(show_label=False, avatar_images=(random.choice(['1.png','2,png','3.png','4.png','5.png']), 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
27 |
title="LLaVa-2",
|
28 |
description="This Is Official Demo Of ```LLaVa-2```. ```History/context``` memory does not work in this demo",
|
29 |
concurrency_limit=20,#layout="vertical",#bubble_full_width=False
|