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