ashutoshzade commited on
Commit
a6da76a
·
1 Parent(s): 6fca7cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,13 +11,13 @@ def clear_text(input_text):
11
 
12
  iface = gr.Interface(
13
  fn=generate_text,
14
- inputs=gr.inputs.Textbox(prompt="Input Text", lines=5, placeholder="Enter text here..."),
15
  outputs=gr.outputs.Textbox(label="Generated Text", lines=5),
16
  title="Text Generator",
17
  theme="compact"
18
  )
19
 
20
  # Adding an additional input for clearing text
21
- iface.add_input("textbox", label="Clear", type="textbox", lines=1, placeholder="Clear text")
22
 
23
  iface.launch()
 
11
 
12
  iface = gr.Interface(
13
  fn=generate_text,
14
+ inputs=gr.inputs.Textbox(lines=5, placeholder="Input Text..."),
15
  outputs=gr.outputs.Textbox(label="Generated Text", lines=5),
16
  title="Text Generator",
17
  theme="compact"
18
  )
19
 
20
  # Adding an additional input for clearing text
21
+ iface.add_input("textbox", label="Clear", type="text", lines=1, placeholder="Clear text")
22
 
23
  iface.launch()