Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,19 +17,6 @@ PLACEHOLDER = """
|
|
17 |
</center>
|
18 |
"""
|
19 |
|
20 |
-
|
21 |
-
CSS = """
|
22 |
-
.duplicate-button {
|
23 |
-
margin: auto !important;
|
24 |
-
color: white !important;
|
25 |
-
background: black !important;
|
26 |
-
border-radius: 100vh !important;
|
27 |
-
}
|
28 |
-
h3 {
|
29 |
-
text-align: center;
|
30 |
-
}
|
31 |
-
"""
|
32 |
-
|
33 |
# pip install transformers
|
34 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
35 |
|
@@ -105,9 +92,8 @@ def stream_chat(
|
|
105 |
|
106 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
107 |
|
108 |
-
with gr.Blocks(
|
109 |
gr.HTML(TITLE)
|
110 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
|
111 |
gr.ChatInterface(
|
112 |
fn=stream_chat,
|
113 |
chatbot=chatbot,
|
|
|
17 |
</center>
|
18 |
"""
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
# pip install transformers
|
21 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
22 |
|
|
|
92 |
|
93 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
94 |
|
95 |
+
with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
|
96 |
gr.HTML(TITLE)
|
|
|
97 |
gr.ChatInterface(
|
98 |
fn=stream_chat,
|
99 |
chatbot=chatbot,
|