Lord-Raven commited on
Commit
7badb14
·
1 Parent(s): 0686401

Playing with different models.

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +1 -1
README.md CHANGED
@@ -8,6 +8,8 @@ sdk_version: 4.41.0
8
  app_file: app.py
9
  pinned: false
10
  license: openrail
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  app_file: app.py
9
  pinned: false
10
  license: openrail
11
+ custom_headers:
12
+ access-control-allow-origin: https://statosphere-3704059fdd7e.c5v4v4jx6pq5.win
13
  ---
14
 
15
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -3,7 +3,7 @@ import json
3
  from transformers import pipeline
4
  from transformers import AutoTokenizer
5
 
6
- classifier = pipeline(task='zero-shot-classification', model='tasksource/deberta-small-long-nli')
7
 
8
  def zero_shot_classification(data_string):
9
  print(data_string)
 
3
  from transformers import pipeline
4
  from transformers import AutoTokenizer
5
 
6
+ classifier = pipeline(task='zero-shot-classification', model='tasksource/deberta-small-long-nli', device=0)
7
 
8
  def zero_shot_classification(data_string):
9
  print(data_string)