MMars commited on
Commit
df4bca0
1 Parent(s): 7c8c7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
 
3
- title = "Question Answering with IndoBERT"
4
 
5
  context = """
6
- The Beatles adalah band Inggris beraliran rock, dibentuk di Liverpool pada tahun 1960, sering kali dianggap sebagai band tersukses secara komersial dan paling banyak mendapat pujian dalam musik populer. Sejak tahun 1962, kelompok ini terdiri dari John Lennon, Paul McCartney, George Harrison, Ringo Starr. Bermula dari aliran skiffle dan rock and roll 1950-an, band ini nantinya memainkan musik dalam berbagai genre mulai dari folk rock sampai rock psikedelik, memasukkan juga unsur musik klasik dan elemen lain dengan cara inovatif. The Beatles dipandang sebagai perwujudan ide-ide progresif, berpengaruh terhadap revolusi sosial budaya pada dekade 60-an.
7
  """
8
 
9
- question = "Siapa anggota 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()
 
1
  import gradio as gr
2
 
3
+ title = "Question_Answering_DistilBert_Finetuned_on_SQuAD_Demo"
4
 
5
  context = """
6
+ The Amazon rainforest (Portuguese: Floresta Amazônica or Amazônia; Spanish: Selva Amazónica, Amazonía or usually Amazonia; French: Forêt amazonienne; Dutch: Amazoneregenwoud), also known in English as Amazonia or the Amazon Jungle, is a moist broadleaf forest that covers most of the Amazon basin of South America. This basin encompasses 7,000,000 square kilometres (2,700,000 sq mi), of which 5,500,000 square kilometres (2,100,000 sq mi) are covered by the rainforest. This region includes territory belonging to nine nations. The majority of the forest is contained within Brazil, with 60% of the rainforest, followed by Peru with 13%, Colombia with 10%, and with minor amounts in Venezuela, Ecuador, Bolivia, Guyana, Suriname and French Guiana. States or departments in four nations contain "Amazonas" in their names. The Amazon represents over half of the planet's remaining rainforests, and comprises the largest and most biodiverse tract of tropical rainforest in the world, with an estimated 390 billion individual trees divided into 16,000 species.
7
  """
8
 
9
+ question = "Which name is also used to describe the Amazon rainforest in English?"
10
 
11
+ gr.Interface.load("huggingface/MMars/distilbert-base-uncased-finetuned-squad",
12
  title=title,
13
  inputs=[gr.Textbox(label="Context", lines=5, value=context),
14
  gr.Textbox(label="Question", value=question)]).launch()