prabinpanta0 commited on
Commit
2a0c386
1 Parent(s): 87f1f76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -72,7 +72,7 @@ def update_output_and_copy(text):
72
  iface = gr.Interface(
73
  fn=generate,
74
  inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
75
- outputs=gr.Textbox(visible=False),
76
  title="Chuunibyou Text Generator",
77
  description="Transform text into an elaborate and formal style with a Chuunibyou tone."
78
  )
@@ -81,9 +81,9 @@ iface_with_button = gr.Blocks()
81
 
82
  with iface_with_button:
83
  textbox = gr.Textbox(lines=2, placeholder="Enter text here...")
84
- output = gr.Textbox(visible=False)
85
  submit_button = gr.Button("Submit")
86
- copy_message = gr.Textbox(visible=False)
87
 
88
  submit_button.click(
89
  fn=update_output_and_copy,
 
72
  iface = gr.Interface(
73
  fn=generate,
74
  inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
75
+ outputs=gr.Textbox(visible=True),
76
  title="Chuunibyou Text Generator",
77
  description="Transform text into an elaborate and formal style with a Chuunibyou tone."
78
  )
 
81
 
82
  with iface_with_button:
83
  textbox = gr.Textbox(lines=2, placeholder="Enter text here...")
84
+ output = gr.Textbox(visible=True)
85
  submit_button = gr.Button("Submit")
86
+ copy_message = gr.Textbox(visible=True)
87
 
88
  submit_button.click(
89
  fn=update_output_and_copy,