Commit
·
859873c
1
Parent(s):
d861a5c
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
from transformers import pipeline, Conversation
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
|
|
|
| 4 |
chatbot = pipeline(model="facebook/blenderbot-400M-distill") #Working!
|
| 5 |
#https://huggingface.co/facebook/blenderbot-400M-distill/tree/main
|
| 6 |
#这个模型文件大小:730MB或1.46GB
|
|
|
|
| 1 |
from transformers import pipeline, Conversation
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
|
| 5 |
+
#这个Space主要是演示了可以直接使用Huggingface的pipeline构建AIApp,然后还刚好可以和Gradio的ChatInterface对应上!
|
| 6 |
chatbot = pipeline(model="facebook/blenderbot-400M-distill") #Working!
|
| 7 |
#https://huggingface.co/facebook/blenderbot-400M-distill/tree/main
|
| 8 |
#这个模型文件大小:730MB或1.46GB
|