ariG23498 HF Staff commited on
Commit
f8b3770
·
verified ·
1 Parent(s): 236859f

Upload ArliAI_gpt-oss-20b-Derestricted_0.py with huggingface_hub

Browse files
ArliAI_gpt-oss-20b-Derestricted_0.py CHANGED
@@ -24,6 +24,10 @@ try:
24
  from transformers import pipeline
25
 
26
  pipe = pipeline("text-generation", model="ArliAI/gpt-oss-20b-Derestricted")
 
 
 
 
27
  with open('ArliAI_gpt-oss-20b-Derestricted_0.txt', 'w', encoding='utf-8') as f:
28
  f.write('Everything was good in ArliAI_gpt-oss-20b-Derestricted_0.txt')
29
  except Exception as e:
@@ -42,6 +46,10 @@ except Exception as e:
42
  from transformers import pipeline
43
 
44
  pipe = pipeline("text-generation", model="ArliAI/gpt-oss-20b-Derestricted")
 
 
 
 
45
  ```
46
 
47
  ERROR:
 
24
  from transformers import pipeline
25
 
26
  pipe = pipeline("text-generation", model="ArliAI/gpt-oss-20b-Derestricted")
27
+ messages = [
28
+ {"role": "user", "content": "Who are you?"},
29
+ ]
30
+ pipe(messages)
31
  with open('ArliAI_gpt-oss-20b-Derestricted_0.txt', 'w', encoding='utf-8') as f:
32
  f.write('Everything was good in ArliAI_gpt-oss-20b-Derestricted_0.txt')
33
  except Exception as e:
 
46
  from transformers import pipeline
47
 
48
  pipe = pipeline("text-generation", model="ArliAI/gpt-oss-20b-Derestricted")
49
+ messages = [
50
+ {"role": "user", "content": "Who are you?"},
51
+ ]
52
+ pipe(messages)
53
  ```
54
 
55
  ERROR: