Spaces:
Runtime error
Runtime error
Commit
·
bb0478c
1
Parent(s):
d5372a7
Update app.py
Browse files
app.py
CHANGED
@@ -24,10 +24,9 @@ if __name__ == "__main__":
|
|
24 |
answer = tokenizer.decode(tokenizer.convert_tokens_to_ids(answer_tokens))
|
25 |
|
26 |
return answer
|
|
|
|
|
|
|
|
|
27 |
|
28 |
-
|
29 |
-
question = gr.inputs.TextBox(lines=2, default="Who added BigBird to HuggingFace Transformers?", label="Question")
|
30 |
-
context = gr.inputs.TextBox(lines=10, default=default_context, label="Context")
|
31 |
-
|
32 |
-
gr.Interface(fn=get_answer, inputs=[question, context], outputs="text").launch()
|
33 |
-
|
|
|
24 |
answer = tokenizer.decode(tokenizer.convert_tokens_to_ids(answer_tokens))
|
25 |
|
26 |
return answer
|
27 |
+
|
28 |
+
default_context = "BigBird Pegasus just landed! Thanks to Vasudev Gupta, BigBird Pegasus from Google AI is merged into HuggingFace Transformers. Check it out today!!!"
|
29 |
+
question = gr.inputs.TextBox(lines=2, default="Who added BigBird to HuggingFace Transformers?", label="Question")
|
30 |
+
context = gr.inputs.TextBox(lines=10, default=default_context, label="Context")
|
31 |
|
32 |
+
gr.Interface(fn=get_answer, inputs=[question, context], outputs="text").launch()
|
|
|
|
|
|
|
|
|
|