maradona commited on
Commit
23cbff5
1 Parent(s): 2018e24

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -19,3 +19,12 @@ Base Gemma 2B model Finetuned on twitter-financial-news-sentiment dataset
19
  Tweet: $ALLY - Ally Financial pulls outlook https://t.co/G9Zdi1boy5
20
  Sentiment: [Bullish | Bearish | Neutral]
21
  ```
 
 
 
 
 
 
 
 
 
 
19
  Tweet: $ALLY - Ally Financial pulls outlook https://t.co/G9Zdi1boy5
20
  Sentiment: [Bullish | Bearish | Neutral]
21
  ```
22
+
23
+
24
+ ```python
25
+ # Load model directly
26
+ from transformers import AutoTokenizer, AutoModelForCausalLM
27
+
28
+ tokenizer = AutoTokenizer.from_pretrained("maradona/gemma-2b-twitter-financial-news-sentiment")
29
+ model = AutoModelForCausalLM.from_pretrained("maradona/gemma-2b-twitter-financial-news-sentiment")
30
+ ```