nikravan commited on
Commit
bdc902b
1 Parent(s): ae3f596

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,6 +97,8 @@ def mode_load(path):
97
 
98
 
99
  @spaces.GPU()
 
 
100
  model = AutoModelForCausalLM.from_pretrained(
101
  MODEL_ID,
102
  torch_dtype=torch.bfloat16,
@@ -104,7 +106,6 @@ def mode_load(path):
104
  trust_remote_code=True
105
  )
106
  model.eval()
107
- def stream_chat(message, history: list, temperature: float, max_length: int, top_p: float, top_k: int, penalty: float):
108
  print(f'message is - {message}')
109
  print(f'history is - {history}')
110
  conversation = []
 
97
 
98
 
99
  @spaces.GPU()
100
+
101
+ def stream_chat(message, history: list, temperature: float, max_length: int, top_p: float, top_k: int, penalty: float):
102
  model = AutoModelForCausalLM.from_pretrained(
103
  MODEL_ID,
104
  torch_dtype=torch.bfloat16,
 
106
  trust_remote_code=True
107
  )
108
  model.eval()
 
109
  print(f'message is - {message}')
110
  print(f'history is - {history}')
111
  conversation = []