Spaces:
Sleeping
Sleeping
prithivMLmods
commited on
Commit
β’
9b3079c
1
Parent(s):
4bfc4dc
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from docx import Document
|
|
8 |
|
9 |
# Custom CSS
|
10 |
css = '''
|
11 |
-
.gradio-container{max-width:
|
12 |
h1{text-align:center}
|
13 |
footer {
|
14 |
visibility: hidden
|
@@ -127,11 +127,11 @@ def save_handler(message, history, system_message, max_tokens, temperature, top_
|
|
127 |
demo = gr.Interface(
|
128 |
fn=save_handler,
|
129 |
inputs=[
|
130 |
-
gr.Textbox(value="", label="
|
131 |
gr.State([]), # Initialize state as an empty list
|
132 |
-
gr.Textbox(value="", label="System message"),
|
133 |
-
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
134 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
135 |
gr.Slider(
|
136 |
minimum=0.1,
|
137 |
maximum=1.0,
|
|
|
8 |
|
9 |
# Custom CSS
|
10 |
css = '''
|
11 |
+
.gradio-container{max-width: 1500px !important}
|
12 |
h1{text-align:center}
|
13 |
footer {
|
14 |
visibility: hidden
|
|
|
127 |
demo = gr.Interface(
|
128 |
fn=save_handler,
|
129 |
inputs=[
|
130 |
+
gr.Textbox(value="", label="Type a message..", lines=5),
|
131 |
gr.State([]), # Initialize state as an empty list
|
132 |
+
gr.Textbox(value="", label="System message", visible=False),
|
133 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens", visible=False),
|
134 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature", visible=False),
|
135 |
gr.Slider(
|
136 |
minimum=0.1,
|
137 |
maximum=1.0,
|