zxcgqq commited on
Commit
e9b985a
·
1 Parent(s): 5f28b50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # 导入gradio
2
  import gradio as gr
 
3
 
4
  # 通过Interface加载pipeline并启动服务
5
  gr.Interface.from_pipeline(pipeline("question-answering", model="uer/roberta-base-finetuned-dianping-chinese")).launch()
 
1
  # 导入gradio
2
  import gradio as gr
3
+ from transformers import *
4
 
5
  # 通过Interface加载pipeline并启动服务
6
  gr.Interface.from_pipeline(pipeline("question-answering", model="uer/roberta-base-finetuned-dianping-chinese")).launch()