Spaces:
Sleeping
Sleeping
Commit
•
d2237c8
1
Parent(s):
e30b827
adding chatbot with advanced options
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ DEVICE = 'cpu'
|
|
13 |
FILE_EXT = ['pdf','text','csv','word','wav']
|
14 |
DEFAULT_SYSTEM_PROMPT = "As a chatbot you are answering set of questions being requested ."
|
15 |
MAX_MAX_NEW_TOKENS = 2048
|
|
|
16 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
17 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
18 |
|
@@ -169,7 +170,7 @@ with gr.Blocks(css=css) as demo:
|
|
169 |
)
|
170 |
temperature = gr.Slider(
|
171 |
label='Temperature',
|
172 |
-
minimum=
|
173 |
maximum=4.0,
|
174 |
step=0.1,
|
175 |
value=1.0,
|
|
|
13 |
FILE_EXT = ['pdf','text','csv','word','wav']
|
14 |
DEFAULT_SYSTEM_PROMPT = "As a chatbot you are answering set of questions being requested ."
|
15 |
MAX_MAX_NEW_TOKENS = 2048
|
16 |
+
DEFAULT_TEMPERATURE = 0.1
|
17 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
18 |
MAX_INPUT_TOKEN_LENGTH = 4000
|
19 |
|
|
|
170 |
)
|
171 |
temperature = gr.Slider(
|
172 |
label='Temperature',
|
173 |
+
minimum=DEFAULT_TEMPERATURE,
|
174 |
maximum=4.0,
|
175 |
step=0.1,
|
176 |
value=1.0,
|