kassemsabeh commited on
Commit
c50ae20
1 Parent(s): b8ddf07

Update examples

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -9,7 +9,7 @@ max_target_length = 10
9
  auth_token = os.environ.get('TOKEN')
10
 
11
  model = T5ForConditionalGeneration.from_pretrained(model_id, use_auth_token=auth_token)
12
- tokenizer = AutoTokenizer.from_pretrained(model_id, use_auth_token=auth_token)
13
 
14
  def predict(title, category):
15
  input = f"{title} <hl> {category} <hl>"
@@ -24,7 +24,12 @@ iface = gr.Interface(
24
  inputs=["text", "text"],
25
  outputs=['text'],
26
  title="GAVI",
27
- examples=[["Arriba Salsa Garlic and Cilantro, 16 oz", "Food"], ["MV Verholen Black GPS Ball Mount for BMW K1200S K1200R K1300S K1300R Black GPS Ball Mount VER-4901-10181", "Toys"]]
 
 
 
 
 
28
  )
29
 
30
  iface.launch()
 
9
  auth_token = os.environ.get('TOKEN')
10
 
11
  model = T5ForConditionalGeneration.from_pretrained(model_id, use_auth_token=auth_token)
12
+ tokenizer = AutoTokenizer.from_pretrained(model_id, use_auth_token=auth_token)
13
 
14
  def predict(title, category):
15
  input = f"{title} <hl> {category} <hl>"
 
24
  inputs=["text", "text"],
25
  outputs=['text'],
26
  title="GAVI",
27
+ examples=[["Arriba Salsa Garlic and Cilantro, 16 oz", "Food"],
28
+ ["MV Verholen Black GPS Ball Mount for BMW K1200S K1200R K1300S K1300R Black GPS Ball Mount VER-4901-10181", "Toys"],
29
+ ["Mitsubishi 3000GT License Plate Frame (Zince Metal)", "Automotive"],
30
+ ["Fun Fire Truck Pinata Personalized", "Toys"],
31
+ ["White Chocolate Caramel Gourmet Popcorn Kelly", "Food"]
32
+ ]
33
  )
34
 
35
  iface.launch()