Spaces:
Sleeping
Sleeping
prithivMLmods
commited on
Commit
β’
2f336b3
1
Parent(s):
bb80c1f
Update app.py
Browse files
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="
|
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 |
],
|
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,
|