Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def generate(text = ""):
|
|
54 |
demo = gr.Interface(
|
55 |
title="Hebrew text generator: Science Fiction and Fantasy (GPT-Neo)",
|
56 |
fn=generate,
|
57 |
-
inputs=gr.Textbox(label="ืืชืื ืืื ืืช ืืืงืกื ืฉืืื ืื ืืฉืืืจื ืจืืง", elem_id="input_text"),
|
58 |
-
outputs=gr.Textbox(type="text", label="ืคื ืืืคืืข ืืืงืกื ืฉืืืืืื ืืืืื", elem_id="output_text"),
|
59 |
css="#output_text{direction: rtl} #input_text{direction: rtl}",
|
60 |
examples = ['ืืฉื ืืืคืืข ืืื','ืงืืื ืฉืืคื ืืช','ืคืขื ืืืช ืืคื ื ืฉื ืื ืจืืืช', 'ืืืจื ืคืืืจ ืืืื ืืืื ื ืืื', 'ืืื ืืคืจืชื ืืช ืื ืืืื ืืืงืก ืืฉ'],
|
61 |
allow_flagging="never",
|
|
|
54 |
demo = gr.Interface(
|
55 |
title="Hebrew text generator: Science Fiction and Fantasy (GPT-Neo)",
|
56 |
fn=generate,
|
57 |
+
inputs=gr.Textbox(label="ืืชืื ืืื ืืช ืืืงืกื ืฉืืื ืื ืืฉืืืจื ืจืืง", text_align = 'right', rtl = True, elem_id="input_text"),
|
58 |
+
outputs=gr.Textbox(type="text", label="ืคื ืืืคืืข ืืืงืกื ืฉืืืืืื ืืืืื", text_align = 'right', rtl = True, elem_id="output_text"),
|
59 |
css="#output_text{direction: rtl} #input_text{direction: rtl}",
|
60 |
examples = ['ืืฉื ืืืคืืข ืืื','ืงืืื ืฉืืคื ืืช','ืคืขื ืืืช ืืคื ื ืฉื ืื ืจืืืช', 'ืืืจื ืคืืืจ ืืืื ืืืื ื ืืื', 'ืืื ืืคืจืชื ืืช ืื ืืืื ืืืงืก ืืฉ'],
|
61 |
allow_flagging="never",
|