IProject-10 commited on
Commit
b10dd3f
1 Parent(s): a194712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -14,9 +14,6 @@ md = """
14
  context = "The Amazon rainforest, 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..."
15
  question = "Which continent is the Amazon rainforest in?"
16
 
17
- apple_context = "An apple is an edible fruit produced by an apple tree (Malus domestica)..."
18
- apple_question = "How many years have apples been grown for?"
19
-
20
  gr.Interface(
21
  predict,
22
  inputs=[
@@ -24,7 +21,6 @@ gr.Interface(
24
  gr.Textbox(lines=2, value=question, label="Question"),
25
  ],
26
  outputs=gr.Textbox(label="Answer"),
27
- examples=[[apple_context, apple_question]],
28
  title="Question Answering System",
29
  description=md,
30
  ).launch()
 
14
  context = "The Amazon rainforest, 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..."
15
  question = "Which continent is the Amazon rainforest in?"
16
 
 
 
 
17
  gr.Interface(
18
  predict,
19
  inputs=[
 
21
  gr.Textbox(lines=2, value=question, label="Question"),
22
  ],
23
  outputs=gr.Textbox(label="Answer"),
 
24
  title="Question Answering System",
25
  description=md,
26
  ).launch()