Omnibus commited on
Commit
9fc2a8e
·
verified ·
1 Parent(s): be1cf2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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}\n
63
- "Power": 1\n
64
- "Strength": 20\n
65
- "Magic": 24\n
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=1048,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()
 
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()