Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
pipe = pipeline(task="text2text-generation", model="model/t5-name-cot")
|
7 |
-
pipe_aux = pipeline(task="text2text-generation", model="model/t5-component")
|
8 |
|
9 |
def predict(input_text):
|
10 |
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline(task="text2text-generation", model="Jumpy-pku/t5-dish-name-recognition")
|
5 |
+
pipe_aux = pipeline(task="text2text-generation", model="Jumpy-pku/t5-dish-name-recognition-auxiliary")
|
|
|
|
|
6 |
|
7 |
def predict(input_text):
|
8 |
|