Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,8 @@ def extend(input_text, num_return_sequences, max_size=20, top_k=50, top_p=0.95):
|
|
| 47 |
)
|
| 48 |
#generated_sequences.append(total_sequence)
|
| 49 |
generated_sequences.append(text)
|
| 50 |
-
|
|
|
|
| 51 |
parsed_text = total_sequence.replace("<|startoftext|>", "").replace("\r","").replace("\n\n", "\n")
|
| 52 |
if len(parsed_text) == 0:
|
| 53 |
parsed_text = "שגיאה"
|
|
|
|
| 47 |
)
|
| 48 |
#generated_sequences.append(total_sequence)
|
| 49 |
generated_sequences.append(text)
|
| 50 |
+
st.write(text)
|
| 51 |
+
|
| 52 |
parsed_text = total_sequence.replace("<|startoftext|>", "").replace("\r","").replace("\n\n", "\n")
|
| 53 |
if len(parsed_text) == 0:
|
| 54 |
parsed_text = "שגיאה"
|