Update app.py
Browse files
app.py
CHANGED
|
@@ -14,10 +14,6 @@ def generate(starting_text):
|
|
| 14 |
response=response+f"{i}: {gpt2_tkn.decode(x, skip_special_tokens=True)}"
|
| 15 |
return response
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|
| 22 |
out=grad.Textbox(lines=1, label="Generated Tensors")
|
| 23 |
grad.Interface(generate, inputs=txt, outputs=out).launch()
|
|
|
|
| 14 |
response=response+f"{i}: {gpt2_tkn.decode(x, skip_special_tokens=True)}"
|
| 15 |
return response
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
txt=grad.Textbox(lines=1, label="English", placeholder="English Text here")
|
| 18 |
out=grad.Textbox(lines=1, label="Generated Tensors")
|
| 19 |
grad.Interface(generate, inputs=txt, outputs=out).launch()
|