Spaces:
Running
on
Zero
Running
on
Zero
Lord-Raven
commited on
Commit
·
a05e5e2
1
Parent(s):
16886dd
Messing with configuration.
Browse files
app.py
CHANGED
@@ -54,7 +54,6 @@ def classify(data_string, request: gradio.Request):
|
|
54 |
# else:
|
55 |
return zero_shot_classification(data)
|
56 |
|
57 |
-
@spaces.GPU
|
58 |
def zero_shot_classification(data):
|
59 |
results = classifier(data['sequence'], candidate_labels=data['candidate_labels'], hypothesis_template=data['hypothesis_template'], multi_label=data['multi_label'])
|
60 |
response_string = json.dumps(results)
|
|
|
54 |
# else:
|
55 |
return zero_shot_classification(data)
|
56 |
|
|
|
57 |
def zero_shot_classification(data):
|
58 |
results = classifier(data['sequence'], candidate_labels=data['candidate_labels'], hypothesis_template=data['hypothesis_template'], multi_label=data['multi_label'])
|
59 |
response_string = json.dumps(results)
|