Christoph Holthaus commited on
Commit
878d5c0
1 Parent(s): e80da7c

dev - magic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ def generate(
93
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
94
  input_ids = input_ids.to(model.device)
95
 
96
- streamer= Llama()
97
  streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
98
  generate_kwargs = dict(
99
  {"input_ids": input_ids},
 
93
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
94
  input_ids = input_ids.to(model.device)
95
 
96
+ llm.generate('test')
97
  streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
98
  generate_kwargs = dict(
99
  {"input_ids": input_ids},