Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def respond(
|
|
35 |
inputs = tokenizer("Hello my name is", return_tensors="pt")
|
36 |
|
37 |
outputs = model.generate(**inputs, max_new_tokens=20)
|
38 |
-
gen_text=tokenizer.decode(outputs[0], skip_special_tokens=True
|
39 |
|
40 |
print(gen_text)
|
41 |
yield gen_text
|
|
|
35 |
inputs = tokenizer("Hello my name is", return_tensors="pt")
|
36 |
|
37 |
outputs = model.generate(**inputs, max_new_tokens=20)
|
38 |
+
gen_text=tokenizer.decode(outputs[0], skip_special_tokens=True)
|
39 |
|
40 |
print(gen_text)
|
41 |
yield gen_text
|