Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def text2text(answer,context):
|
|
15 |
response=text2text_tkn.decode(output[0])
|
16 |
return response
|
17 |
|
18 |
-
txt=grad.Textbox(lines=
|
19 |
ans=grad.Textbox(lines=1, label="Answer")
|
20 |
out=grad.Textbox(lines=1, label="Genereated Question")
|
21 |
grad.Interface(text2text, inputs=[txt,ans], outputs=out).launch()
|
|
|
15 |
response=text2text_tkn.decode(output[0])
|
16 |
return response
|
17 |
|
18 |
+
txt=grad.Textbox(lines=10, label="English", placeholder="Context")
|
19 |
ans=grad.Textbox(lines=1, label="Answer")
|
20 |
out=grad.Textbox(lines=1, label="Genereated Question")
|
21 |
grad.Interface(text2text, inputs=[txt,ans], outputs=out).launch()
|