Spaces:
Runtime error
Runtime error
Commit
·
7c236b9
1
Parent(s):
34cde4f
minor fixes
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def predict(s1, chosen_model):
|
|
94 |
output = model(**model_input)
|
95 |
logits = output[0][0].detach().numpy()
|
96 |
logits = softmax(logits).tolist()
|
97 |
-
print(f"logits: {logits}")
|
98 |
break
|
99 |
def get_description(idx):
|
100 |
description = score_descriptions[idx]
|
@@ -120,4 +119,4 @@ outputs = [
|
|
120 |
gr.Interface(fn=predict, inputs=inputs, outputs=outputs, title=app_title,
|
121 |
description=app_description,
|
122 |
examples=app_examples,
|
123 |
-
article = article_string).launch(
|
|
|
94 |
output = model(**model_input)
|
95 |
logits = output[0][0].detach().numpy()
|
96 |
logits = softmax(logits).tolist()
|
|
|
97 |
break
|
98 |
def get_description(idx):
|
99 |
description = score_descriptions[idx]
|
|
|
119 |
gr.Interface(fn=predict, inputs=inputs, outputs=outputs, title=app_title,
|
120 |
description=app_description,
|
121 |
examples=app_examples,
|
122 |
+
article = article_string).launch()
|