Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
|
| 5 |
# Load tokenizer and generator
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained('google/mt5-base')
|
| 7 |
-
generator3 = pipeline(model='Suchinthana/
|
| 8 |
|
| 9 |
# Define the function for Gradio to use
|
| 10 |
def generate_sinhala_text(prompt):
|
|
|
|
| 4 |
|
| 5 |
# Load tokenizer and generator
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained('google/mt5-base')
|
| 7 |
+
generator3 = pipeline(model='Suchinthana/MT-5-Sinhala-Wikigen', tokenizer=tokenizer)
|
| 8 |
|
| 9 |
# Define the function for Gradio to use
|
| 10 |
def generate_sinhala_text(prompt):
|