Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,7 @@ def predict(sentence1, sentence2):
|
|
| 72 |
idx = np.argmax(proba)
|
| 73 |
proba = f"{proba[idx]*100:.2f}%"
|
| 74 |
pred = labels[idx]
|
| 75 |
-
return f'
|
| 76 |
|
| 77 |
inputs = [
|
| 78 |
gr.Audio(source = "upload", label='Upload audio file', type="filepath"),
|
|
|
|
| 72 |
idx = np.argmax(proba)
|
| 73 |
proba = f"{proba[idx]*100:.2f}%"
|
| 74 |
pred = labels[idx]
|
| 75 |
+
return f'The semantic similarity of two input sentences is {pred} with {proba} of probability'
|
| 76 |
|
| 77 |
inputs = [
|
| 78 |
gr.Audio(source = "upload", label='Upload audio file', type="filepath"),
|