Add application file
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# โหลดโมเดล
|
| 5 |
-
pipe = pipeline("text2text-generation", model="google/
|
| 6 |
|
| 7 |
# ฟังก์ชันประมวลผลข้อความ
|
| 8 |
def extract_fields(msg):
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# โหลดโมเดล
|
| 5 |
+
pipe = pipeline("text2text-generation", model="google/mt5-base")
|
| 6 |
|
| 7 |
# ฟังก์ชันประมวลผลข้อความ
|
| 8 |
def extract_fields(msg):
|