Spaces:
Running
on
Zero
Running
on
Zero
Lord-Raven
commited on
Commit
·
f03306d
1
Parent(s):
5825e6d
Messing with configuration.
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def classify(data_string, request: gradio.Request):
|
|
50 |
# else:
|
51 |
return zero_shot_classification(data)
|
52 |
|
53 |
-
@spaces.GPU(duration=
|
54 |
def zero_shot_classification(data):
|
55 |
results = classifier(data['sequence'], candidate_labels=data['candidate_labels'], hypothesis_template=data['hypothesis_template'], multi_label=data['multi_label'])
|
56 |
response_string = json.dumps(results)
|
|
|
50 |
# else:
|
51 |
return zero_shot_classification(data)
|
52 |
|
53 |
+
@spaces.GPU(duration=5)
|
54 |
def zero_shot_classification(data):
|
55 |
results = classifier(data['sequence'], candidate_labels=data['candidate_labels'], hypothesis_template=data['hypothesis_template'], multi_label=data['multi_label'])
|
56 |
response_string = json.dumps(results)
|