Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,9 +320,6 @@ def wrap_text(text, width=90):
|
|
| 320 |
wrapped_text = '\n'.join(wrapped_lines)
|
| 321 |
return wrapped_text
|
| 322 |
|
| 323 |
-
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-1_8B-Chat", trust_remote_code=True) # TruEra
|
| 324 |
-
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-1_8B-Chat", device_map="auto", trust_remote_code=True).eval()
|
| 325 |
-
|
| 326 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-1_8B-Chat", trust_remote_code=True)
|
| 327 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-1_8B-Chat", device_map="auto", trust_remote_code=True).eval()
|
| 328 |
|
|
|
|
| 320 |
wrapped_text = '\n'.join(wrapped_lines)
|
| 321 |
return wrapped_text
|
| 322 |
|
|
|
|
|
|
|
|
|
|
| 323 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-1_8B-Chat", trust_remote_code=True)
|
| 324 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-1_8B-Chat", device_map="auto", trust_remote_code=True).eval()
|
| 325 |
|