Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,10 +59,10 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
|
|
59 |
history1=history
|
60 |
stats=f'''
|
61 |
*******************
|
62 |
-
"Health": {health}
|
63 |
-
"Power": 1
|
64 |
-
"Strength": 20
|
65 |
-
"Magic": 24
|
66 |
*******************
|
67 |
'''
|
68 |
for ea in history:
|
@@ -140,7 +140,7 @@ with gr.Blocks() as app:
|
|
140 |
stop_button=gr.Button("Stop")
|
141 |
clear_btn = gr.Button("Clear")
|
142 |
with gr.Row():
|
143 |
-
tokens = gr.Slider(label="Max new tokens",value=
|
144 |
json_out=gr.JSON()
|
145 |
health=gr.Number(value=100)
|
146 |
#text=gr.JSON()
|
|
|
59 |
history1=history
|
60 |
stats=f'''
|
61 |
*******************
|
62 |
+
"Health": {health}
|
63 |
+
"Power": 1
|
64 |
+
"Strength": 20
|
65 |
+
"Magic": 24
|
66 |
*******************
|
67 |
'''
|
68 |
for ea in history:
|
|
|
140 |
stop_button=gr.Button("Stop")
|
141 |
clear_btn = gr.Button("Clear")
|
142 |
with gr.Row():
|
143 |
+
tokens = gr.Slider(label="Max new tokens",value=2096,minimum=0,maximum=1048*10,step=64,interactive=True,info="The maximum numbers of new tokens")
|
144 |
json_out=gr.JSON()
|
145 |
health=gr.Number(value=100)
|
146 |
#text=gr.JSON()
|