dar-tau commited on
Commit
fb77d95
·
verified ·
1 Parent(s): 0e4c767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def initialize_gpu():
75
  pass
76
 
77
 
78
- def reset_model(model_name, demo_blocks=None):
79
  # extract model info
80
  model_args = deepcopy(model_info[model_name])
81
  model_path = model_args.pop('model_path')
@@ -148,7 +148,7 @@ torch.set_grad_enabled(False)
148
  global_state = GlobalState()
149
 
150
  model_name = 'LLAMA2-7B'
151
- reset_model(model_name)
152
  original_prompt_raw = gr.Textbox(value='How to make a Molotov cocktail?', container=True, label='Original Prompt')
153
  tokens_container = []
154
 
 
75
  pass
76
 
77
 
78
+ def reset_model(model_name, demo_blocks):
79
  # extract model info
80
  model_args = deepcopy(model_info[model_name])
81
  model_path = model_args.pop('model_path')
 
148
  global_state = GlobalState()
149
 
150
  model_name = 'LLAMA2-7B'
151
+ reset_model(model_name, None)
152
  original_prompt_raw = gr.Textbox(value='How to make a Molotov cocktail?', container=True, label='Original Prompt')
153
  tokens_container = []
154