Wootang01 commited on
Commit
8e1e982
·
1 Parent(s): c19b81b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  title = "Question Answer Generator"
 
3
  examples = [
4
  ["However, this year I find it hard to cope with my schoolwork.", "When does the author find it hard to cope with schoolwork?"],
5
  ["What’s more, the only way I can keep myself awake and finish off everything I need to for the day is by consuming energy drinks. I know that some of these drinks have caffeine in them, and sometimes I feel groggy in the morning if I’ve had more than a couple the night before.", "What does 'them' refer to?"],
@@ -11,4 +12,4 @@ gr.Interface.load("huggingface/deepset/roberta-base-squad2",
11
  gr.inputs.Textbox(lines=2, label="Question", placeholder="Ask a question based on the context.")],
12
  outputs=[gr.outputs.Textbox(label="Answer"),
13
  gr.outputs.Label(label="Probability")],
14
- title=title, examples=examples).launch(share=True)
 
1
  import gradio as gr
2
  title = "Question Answer Generator"
3
+ description = "Enter a paragraph or sentence. Ask a question based on the paragraph or sentence."
4
  examples = [
5
  ["However, this year I find it hard to cope with my schoolwork.", "When does the author find it hard to cope with schoolwork?"],
6
  ["What’s more, the only way I can keep myself awake and finish off everything I need to for the day is by consuming energy drinks. I know that some of these drinks have caffeine in them, and sometimes I feel groggy in the morning if I’ve had more than a couple the night before.", "What does 'them' refer to?"],
 
12
  gr.inputs.Textbox(lines=2, label="Question", placeholder="Ask a question based on the context.")],
13
  outputs=[gr.outputs.Textbox(label="Answer"),
14
  gr.outputs.Label(label="Probability")],
15
+ title=title, description=description, examples=examples).launch(share=True)