Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,8 @@ import gradio as gr
|
|
6 |
pipe = pipeline("text2text-generation", model="basharalrfooh/Fine-Tashkeel")
|
7 |
|
8 |
def diacratize_text(text):
|
9 |
-
|
|
|
10 |
|
11 |
demo = gr.Interface(
|
12 |
fn=diacratize_text,
|
|
|
6 |
pipe = pipeline("text2text-generation", model="basharalrfooh/Fine-Tashkeel")
|
7 |
|
8 |
def diacratize_text(text):
|
9 |
+
generated_text = pipe(text)
|
10 |
+
return' '.join([s for s in generated_text])
|
11 |
|
12 |
demo = gr.Interface(
|
13 |
fn=diacratize_text,
|