backzone1 commited on
Commit
d4a2af3
·
1 Parent(s): 1af39a2

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -2,7 +2,10 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # โหลดโมเดล
5
- pipe = pipeline("text2text-generation", model="google/mt5-base")
 
 
 
6
 
7
  # ฟังก์ชันประมวลผลข้อความ
8
  def extract_fields(msg):
 
2
  from transformers import pipeline
3
 
4
  # โหลดโมเดล
5
+ pipe = pipeline(
6
+ "zero-shot-classification",
7
+ model="MoritzLaurer/mDeBERTa-v3-base-mnli-xnli"
8
+ )
9
 
10
  # ฟังก์ชันประมวลผลข้อความ
11
  def extract_fields(msg):