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