Spaces:
Sleeping
Sleeping
Patrik Stano commited on
Commit ·
bceb38f
1
Parent(s): b761cf7
fix imports
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
|
| 4 |
# Load the Hugging Face model
|
| 5 |
model_path = "patrixtano/mt5-small-anaphora_czech_6e"
|
| 6 |
model_pipeline = pipeline("text2text-generation", model=model_path)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import pipeline, AutoTokenizer
|
|
|
|
| 3 |
# Load the Hugging Face model
|
| 4 |
model_path = "patrixtano/mt5-small-anaphora_czech_6e"
|
| 5 |
model_pipeline = pipeline("text2text-generation", model=model_path)
|