Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,6 @@ def generate_answers(text):
|
|
25 |
#predictions, _ = model.predict(x)
|
26 |
predictions, _ = model.predict(inputs['input_ids'])
|
27 |
results = np.argmax(predictions, axis=1)
|
28 |
-
print(results)
|
29 |
answer = tokenizer.decode(results[0].flatten(), skip_special_tokens=True)
|
30 |
return answer
|
31 |
|
|
|
25 |
#predictions, _ = model.predict(x)
|
26 |
predictions, _ = model.predict(inputs['input_ids'])
|
27 |
results = np.argmax(predictions, axis=1)
|
|
|
28 |
answer = tokenizer.decode(results[0].flatten(), skip_special_tokens=True)
|
29 |
return answer
|
30 |
|