Spaces:
Paused
Paused
Commit
Β·
8b58f11
1
Parent(s):
6009d20
Update app.py
Browse files
app.py
CHANGED
@@ -33,24 +33,6 @@ def predict(message, history):
|
|
33 |
|
34 |
title = "π Chat with Pigeon"
|
35 |
|
36 |
-
description = \
|
37 |
-
"""
|
38 |
-
π¬ This space is powered by **Huggingface Hosting**.
|
39 |
-
|
40 |
-
π This space runs **very fast** even on **CPU**.
|
41 |
-
|
42 |
-
π You get totally unique and creative answers.
|
43 |
-
|
44 |
-
π PigeonChat is available worldwide in over **160 languages**.
|
45 |
-
|
46 |
-
π PigeonChat is powered by **open source** and is completely **private**.
|
47 |
-
|
48 |
-
π₯οΈοΈ This demo is by **Evgeniy Hristoforu** (**OpenSkyML**).
|
49 |
-
|
50 |
-
|
51 |
-
"""
|
52 |
-
|
53 |
-
|
54 |
examples=[
|
55 |
'Hello there! How are you doing?',
|
56 |
'Can you explain briefly to me what is the Python programming language?',
|
@@ -59,6 +41,6 @@ examples=[
|
|
59 |
"Write a 100-word article on 'Benefits of Open-Source in AI research'",
|
60 |
]
|
61 |
|
62 |
-
chatbot = gr.Chatbot(label="PigeonChat",avatar_images
|
63 |
|
64 |
-
gr.ChatInterface(predict, chatbot = chatbot, title=title,
|
|
|
33 |
|
34 |
title = "π Chat with Pigeon"
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
examples=[
|
37 |
'Hello there! How are you doing?',
|
38 |
'Can you explain briefly to me what is the Python programming language?',
|
|
|
41 |
"Write a 100-word article on 'Benefits of Open-Source in AI research'",
|
42 |
]
|
43 |
|
44 |
+
chatbot = gr.Chatbot(label="PigeonChat", avatar_images["user.png", "bot.png"] min_width=260, show_share_button=False, show_copy_button=True, likeable=True, layout="panel")
|
45 |
|
46 |
+
gr.ChatInterface(predict, chatbot = chatbot, title=title, examples=examples).launch(show_error=False, show_api=False)
|