OzoneAsai commited on
Commit
a6c7076
·
1 Parent(s): acc15c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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="text",
30
- output_text="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()