Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def chat(message, history):
|
|
35 |
history.append((message, response))
|
36 |
return history, history
|
37 |
|
38 |
-
|
39 |
demo = gr.Interface(
|
40 |
chat,
|
41 |
["text", "state"],
|
@@ -43,15 +43,5 @@ demo = gr.Interface(
|
|
43 |
allow_flagging="never",title="Chatbot",
|
44 |
description="This is chatbot made by using a pre-train model by Facebook called blender and I then primed it with a little extra information",
|
45 |
|
46 |
-
)
|
47 |
-
demo = gr.Interface(
|
48 |
-
fn=chat,
|
49 |
-
theme="huggingface",
|
50 |
-
css=".footer {display:none !important}",
|
51 |
-
inputs=["text", "state"],
|
52 |
-
outputs=["chatbot", "state"],
|
53 |
-
title=title,
|
54 |
-
description=description,
|
55 |
-
allow_flagging="never",description="This is chatbot made by using a pre-train model by Facebook called blender and I then primed it with a little extra information",
|
56 |
-
)
|
57 |
demo.launch()
|
|
|
35 |
history.append((message, response))
|
36 |
return history, history
|
37 |
|
38 |
+
chatbot = gr.Chatbot().style(color_map=("green", "pink"))
|
39 |
demo = gr.Interface(
|
40 |
chat,
|
41 |
["text", "state"],
|
|
|
43 |
allow_flagging="never",title="Chatbot",
|
44 |
description="This is chatbot made by using a pre-train model by Facebook called blender and I then primed it with a little extra information",
|
45 |
|
46 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
demo.launch()
|