Update app.py
Browse files
app.py
CHANGED
|
@@ -55,15 +55,15 @@ if len(text_input.strip()) > 0:
|
|
| 55 |
i + 1,
|
| 56 |
tokens,
|
| 57 |
attentionMasks
|
| 58 |
-
|
| 59 |
-
|
| 60 |
print("중복됨")
|
| 61 |
continue
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
|
|
|
| 55 |
i + 1,
|
| 56 |
tokens,
|
| 57 |
attentionMasks
|
| 58 |
+
)
|
| 59 |
+
if generated in results:
|
| 60 |
print("중복됨")
|
| 61 |
continue
|
| 62 |
|
| 63 |
+
results.append(generated)
|
| 64 |
|
| 65 |
+
with lit.expander(str(len(results)) + "번째 결과 (" + str(i +1) + ")", True):
|
| 66 |
+
lit.write(generated)
|
| 67 |
+
print(generated)
|
| 68 |
|
| 69 |
+
lit.caption("및 " + str(5 - len(results)) + " 개의 중복된 결과")
|