Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
chatbot = pipeline("conversational", model="
|
| 5 |
|
| 6 |
def chat_with_bot(message):
|
| 7 |
return chatbot(message)[0]['generated_text']
|
| 8 |
|
| 9 |
gr.Interface(fn=chat_with_bot, inputs="text", outputs="text").launch()
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
chatbot = pipeline("conversational", model="dkleczek/bert-base-polish-cased-v1")
|
| 5 |
|
| 6 |
def chat_with_bot(message):
|
| 7 |
return chatbot(message)[0]['generated_text']
|
| 8 |
|
| 9 |
gr.Interface(fn=chat_with_bot, inputs="text", outputs="text").launch()
|
| 10 |
+
|