prithivMLmods commited on
Commit
2f336b3
β€’
1 Parent(s): bb80c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -90,14 +90,14 @@ def generate_and_save(prompt, history, filename="output", file_format="pdf", sys
90
  demo = gr.Interface(
91
  fn=generate_and_save,
92
  inputs=[
93
- gr.Textbox(placeholder="Type your message here...", label="Prompt"),
94
- gr.State(value=[]), # history
95
- gr.Textbox(placeholder="Filename (default: output)", label="Filename", value="output"),
96
  gr.Radio(["pdf", "docx", "txt"], label="File Format", value="pdf"),
97
  ],
98
  outputs=[
99
  gr.Textbox(label="Generated Text"),
100
- gr.State(value=[]), # history
101
  gr.File(label="Download File")
102
  ],
103
  css=css,
 
90
  demo = gr.Interface(
91
  fn=generate_and_save,
92
  inputs=[
93
+ gr.Textbox(placeholder="Type your message here...", label="Chatbot", lines=4),
94
+ gr.State(value=[]),
95
+ gr.Textbox(placeholder="Filename (default: output)", label="Filename", value="output", lines=4),
96
  gr.Radio(["pdf", "docx", "txt"], label="File Format", value="pdf"),
97
  ],
98
  outputs=[
99
  gr.Textbox(label="Generated Text"),
100
+ gr.State(value=[]),
101
  gr.File(label="Download File")
102
  ],
103
  css=css,