Bisher's picture
Update app.py
ebd80bf verified
raw
history blame
349 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
import gradio as gr
pipe = pipeline("text2text-generation", model="basharalrfooh/Fine-Tashkeel")
def diacratize_text(text):
return pipe(text)['generated_text']
demo = gr.Interface(
fn=diacratize_text,
inputs=["text"],
outputs=["text"],
)
demo.launch()