Spaces:
Runtime error
Runtime error
Fix keyword
Browse files
app.py
CHANGED
@@ -46,4 +46,4 @@ question='How many parameters does Bert large have?'
|
|
46 |
context='Bert large is really big... it has 24 layers, for a total of 340M parameters.Altogether it is 1.34 GB so expect it to take a couple minutes to download to your Colab instance.'
|
47 |
title = 'Question Answering demo with Albert QA transformer and gradio'
|
48 |
gr.Interface(inference,inputs=[gr.inputs.Textbox(lines=7, default=context, label="Context"), gr.inputs.Textbox(lines=2, default=question, label="Question")],
|
49 |
-
outputs=[gr.outputs.Textbox(type="
|
|
|
46 |
context='Bert large is really big... it has 24 layers, for a total of 340M parameters.Altogether it is 1.34 GB so expect it to take a couple minutes to download to your Colab instance.'
|
47 |
title = 'Question Answering demo with Albert QA transformer and gradio'
|
48 |
gr.Interface(inference,inputs=[gr.inputs.Textbox(lines=7, default=context, label="Context"), gr.inputs.Textbox(lines=2, default=question, label="Question")],
|
49 |
+
outputs=[gr.outputs.Textbox(type="text",label="Answer")],title = title,theme = "peach").launch()
|