Spaces:
Build error
Build error
kingabzpro
commited on
Commit
·
66f0f5e
1
Parent(s):
98df760
Update app.py
Browse files
app.py
CHANGED
@@ -71,6 +71,17 @@ def predict(inputs, chatbot):
|
|
71 |
partial_message = partial_message + chunk['choices'][0]['delta']['content']
|
72 |
yield partial_message
|
73 |
|
74 |
-
|
|
|
|
|
75 |
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
partial_message = partial_message + chunk['choices'][0]['delta']['content']
|
72 |
yield partial_message
|
73 |
|
74 |
+
title = "🤖ChatGPT Interface"
|
75 |
+
description = "Chatbots are a popular application of large language models. Using gradio, you can easily build a demo of your chatbot model and share that with your users, or try it yourself using an intuitive chatbot UI."
|
76 |
+
examples = [["How are you?","What is love?"]]
|
77 |
|
78 |
+
|
79 |
+
gr.ChatInterface(title=title,
|
80 |
+
description=description,
|
81 |
+
examples=examples,
|
82 |
+
cache_examples=True,
|
83 |
+
retry_btn=None,
|
84 |
+
undo_btn="Delete Previous",
|
85 |
+
clear_btn="Clear",
|
86 |
+
chatbot=gr.Chatbot(height=300),
|
87 |
+
textbox=gr.Textbox(placeholder="Chat with me")).queue().launch(share=False, debug=True)
|