esakrissa commited on
Commit
8bf39d9
1 Parent(s): 592c27a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Question Answering with IndoBERT"
4
+
5
+ context = """
6
+ The Beatles adalah band rock asal Inggris yang populer pada tahun 60an.
7
+ """
8
+
9
+ question = "Siapa itu The Beatles?"
10
+
11
+ gr.Interface.load("huggingface/esakrissa/IndoBERT-SQuAD",
12
+ title=title,
13
+ inputs=[gr.Textbox(label="Context", lines=5, value=context),
14
+ gr.Textbox(label="Question", value=question)]).launch()