Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,14 @@ def generate_text(input_text):
|
|
24 |
output_text = tokenizer.decode(gen_token[0])
|
25 |
return output_text
|
26 |
|
|
|
|
|
|
|
27 |
interface = gr.Interface(
|
28 |
fn=generate_text,
|
29 |
-
input_text
|
30 |
-
output_text
|
31 |
title="Japanese Text Generation",
|
32 |
-
description="Enter a prompt in Japanese to generate text."
|
|
|
33 |
interface.launch()
|
|
|
24 |
output_text = tokenizer.decode(gen_token[0])
|
25 |
return output_text
|
26 |
|
27 |
+
input_text = gr.inputs.Textbox(lines=5, label="Input Text")
|
28 |
+
output_text = gr.outputs.Textbox(label="Generated Text")
|
29 |
+
|
30 |
interface = gr.Interface(
|
31 |
fn=generate_text,
|
32 |
+
inputs=input_text,
|
33 |
+
outputs=output_text,
|
34 |
title="Japanese Text Generation",
|
35 |
+
description="Enter a prompt in Japanese to generate text."
|
36 |
+
)
|
37 |
interface.launch()
|