Spaces:
Running
Running
Satyam-Singh
commited on
Commit
•
173212d
1
Parent(s):
5493d82
Update app.py
Browse files
app.py
CHANGED
@@ -10,11 +10,19 @@ def generate(prompt, history):
|
|
10 |
|
11 |
return response.last
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
gr.ChatInterface(
|
15 |
-
fn=generate,
|
16 |
-
chatbot=gr.Chatbot(show_label=False,
|
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)
|
|
|
10 |
|
11 |
return response.last
|
12 |
|
13 |
+
''''''iface = gr.Interface(
|
14 |
+
fn=chat,
|
15 |
+
inputs=gr.Textbox(placeholder="Type your message here..."),
|
16 |
+
outputs=gr.Textbox(value="Hello, how are you?"),
|
17 |
+
layout="vertical"
|
18 |
+
)''''''
|
19 |
|
20 |
gr.ChatInterface(
|
21 |
+
fn=chat, #fn=generate,
|
22 |
+
chatbot=gr.Chatbot(show_label=False, avatar_images=(None, 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
23 |
title="LLaVa-2",
|
24 |
description="This Is Official Demo Of ```LLaVa-2```. ```History/context``` memory does not work in this demo",
|
25 |
concurrency_limit=20,
|
26 |
+
layout="vertical",
|
27 |
+
bubble_full_width=False
|
28 |
).launch(share=True,show_api=False)
|