Spaces:
Sleeping
Sleeping
Satyam-Singh
commited on
Commit
•
f3fa29d
1
Parent(s):
cd5883a
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import google.generativeai as genai
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
-
genai.configure(api_key=os.getenv("
|
6 |
|
7 |
def generate(prompt, history):
|
8 |
response = genai.chat(
|
@@ -13,8 +13,8 @@ def generate(prompt, history):
|
|
13 |
|
14 |
gr.ChatInterface(
|
15 |
fn=generate,
|
16 |
-
chatbot=gr.Chatbot(show_label=False, avatar_images=(None, '
|
17 |
-
title="
|
18 |
-
description="This Is Official Demo Of ```
|
19 |
concurrency_limit=20,
|
20 |
).launch(share=True,show_api=False)
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
+
genai.configure(api_key=os.getenv("k"))
|
6 |
|
7 |
def generate(prompt, history):
|
8 |
response = genai.chat(
|
|
|
13 |
|
14 |
gr.ChatInterface(
|
15 |
fn=generate,
|
16 |
+
chatbot=gr.Chatbot(show_label=False, avatar_images=(None, 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
17 |
+
title="LLaVa-2",
|
18 |
+
description="This Is Official Demo Of ```LLaVa-2```. ```History/context``` memory does not work in this demo",
|
19 |
concurrency_limit=20,
|
20 |
).launch(share=True,show_api=False)
|