Spaces:
Sleeping
Sleeping
prithivMLmods
commited on
Commit
β’
186260a
1
Parent(s):
2f336b3
Update app.py
Browse files
app.py
CHANGED
@@ -90,13 +90,13 @@ 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="Chatbot", lines=
|
94 |
gr.State(value=[]),
|
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=[]),
|
101 |
gr.File(label="Download File")
|
102 |
],
|
|
|
90 |
demo = gr.Interface(
|
91 |
fn=generate_and_save,
|
92 |
inputs=[
|
93 |
+
gr.Textbox(placeholder="Type your message here...", label="Chatbot", lines=5),
|
94 |
gr.State(value=[]),
|
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", lines=5),
|
100 |
gr.State(value=[]),
|
101 |
gr.File(label="Download File")
|
102 |
],
|