Hezam commited on
Commit
8e69c0d
1 Parent(s): f0341f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -0
README.md CHANGED
@@ -22,6 +22,9 @@ category_mapping = {
22
  'Accidents':8
23
  }
24
 
 
 
 
25
  model_name = "Hezam/arabic-T5-news-classification-generation"
26
  from transformers import T5ForConditionalGeneration, T5Tokenizer
27
  model = T5ForConditionalGeneration.from_pretrained(model_name)
@@ -30,3 +33,4 @@ tokenizer = T5Tokenizer.from_pretrained(model_name)
30
  input_text = " الاستاذ حزام جوبح يحصل على براعة اختراع في التعلم العميق"
31
  output_text = model.generate(input_text)
32
  print(generated_text)
 
 
22
  'Accidents':8
23
  }
24
 
25
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/645817bb72b60ae7a37f8f40/6gZDjcAOhWLvN5xF-E2FE.png)
26
+
27
+ {
28
  model_name = "Hezam/arabic-T5-news-classification-generation"
29
  from transformers import T5ForConditionalGeneration, T5Tokenizer
30
  model = T5ForConditionalGeneration.from_pretrained(model_name)
 
33
  input_text = " الاستاذ حزام جوبح يحصل على براعة اختراع في التعلم العميق"
34
  output_text = model.generate(input_text)
35
  print(generated_text)
36
+ }