ScriptMaster commited on
Commit ·
6c71ab4
1
Parent(s): 10a2b2c
blenderbot-400M-distill
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from transformers import pipeline
|
|
| 7 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
# iface.launch()
|
| 9 |
|
| 10 |
-
chatbot_model = "facebook/blenderbot-
|
| 11 |
|
| 12 |
chatbot = pipeline(model=chatbot_model)
|
| 13 |
|
|
@@ -20,5 +20,5 @@ def chatbot_response(message, chat_history):
|
|
| 20 |
chat_history.append(bot_message)
|
| 21 |
return bot_message, chat_history
|
| 22 |
|
| 23 |
-
app = gr.ChatInterface(fn=chatbot_response, examples=["hello", "hola", "merhaba"], title="
|
| 24 |
app.launch()
|
|
|
|
| 7 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 8 |
# iface.launch()
|
| 9 |
|
| 10 |
+
chatbot_model = "facebook/blenderbot-400M-distill"
|
| 11 |
|
| 12 |
chatbot = pipeline(model=chatbot_model)
|
| 13 |
|
|
|
|
| 20 |
chat_history.append(bot_message)
|
| 21 |
return bot_message, chat_history
|
| 22 |
|
| 23 |
+
app = gr.ChatInterface(fn=chatbot_response, examples=["hello", "hola", "merhaba"], title="Chat Bot")
|
| 24 |
app.launch()
|