Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def generate(starting_text):
|
|
| 10 |
response=""
|
| 11 |
#response = gpt2_tensors
|
| 12 |
for i, x in enumerate(gpt2_tensors):
|
| 13 |
-
response=response+f"{i}: {gpt2_tkn.decode(x, skip_special_tokens=
|
| 14 |
return response
|
| 15 |
|
| 16 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|
|
|
|
| 10 |
response=""
|
| 11 |
#response = gpt2_tensors
|
| 12 |
for i, x in enumerate(gpt2_tensors):
|
| 13 |
+
response=response+f"{i}: {gpt2_tkn.decode(x, skip_special_tokens=False)}"
|
| 14 |
return response
|
| 15 |
|
| 16 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|