Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
•
3bef8f9
1
Parent(s):
b49edc5
Functionality rework
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def tab_arena():
|
|
110 |
no_context = gradio.Checkbox(label="No context", value=False)
|
111 |
top_p = gradio.Slider(label='Top P', minimum=0, maximum=1, value=1, step=0.05, interactive=True)
|
112 |
temp = gradio.Slider(label='Temperature', minimum=0, maximum=1, value=0.7, step=0.05, interactive=True)
|
113 |
-
max_tokens = gradio.Slider(label='Max ouput tokens', minimum=1, maximum=2048, value=
|
114 |
|
115 |
with gradio.Row():
|
116 |
clear = gradio.ClearButton([msg, chatbot_left, chatbot_right], value='Clear history')
|
|
|
110 |
no_context = gradio.Checkbox(label="No context", value=False)
|
111 |
top_p = gradio.Slider(label='Top P', minimum=0, maximum=1, value=1, step=0.05, interactive=True)
|
112 |
temp = gradio.Slider(label='Temperature', minimum=0, maximum=1, value=0.7, step=0.05, interactive=True)
|
113 |
+
max_tokens = gradio.Slider(label='Max ouput tokens', minimum=1, maximum=2048, value=256, step=1, interactive=True)
|
114 |
|
115 |
with gradio.Row():
|
116 |
clear = gradio.ClearButton([msg, chatbot_left, chatbot_right], value='Clear history')
|
models.py
CHANGED
@@ -16,7 +16,7 @@ class GigaChat:
|
|
16 |
# payload='scope=GIGACHAT_API_CORP'
|
17 |
self.payload='scope=API_v1'
|
18 |
|
19 |
-
self.auth_file =
|
20 |
|
21 |
if self.auth_file is None or not os.path.isfile(auth_file):
|
22 |
self.gen_giga_token(auth_file)
|
|
|
16 |
# payload='scope=GIGACHAT_API_CORP'
|
17 |
self.payload='scope=API_v1'
|
18 |
|
19 |
+
self.auth_file = auth_file
|
20 |
|
21 |
if self.auth_file is None or not os.path.isfile(auth_file):
|
22 |
self.gen_giga_token(auth_file)
|