abdalrahmanshahrour commited on
Commit
ef8268c
·
1 Parent(s): 5772b11
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -27,12 +27,16 @@ qst_1 = "what is shahrour's profession?"
27
  example_2 = "(2) Natural Language Processing (NLP) allows machines to break down and interpret human language. It's at the core of tools we use every day – from translation software, chatbots, spam filters, and search engines, to grammar correction software, voice assistants, and social media monitoring tools."
28
  qst_2 = "What is NLP used for?"
29
 
 
 
 
30
  # creating the interface
31
  app = gr.Interface(fn=func, inputs = ['textbox', 'text'], outputs = 'textbox',
32
  title = 'Question Answering bot', theme = 'dark-grass',
33
  description = 'Input context and question, then get answers!',
34
  examples = [[example_1, qst_1],
35
- [example_2, qst_2]]
 
36
  )
37
 
38
  # launching the app
 
27
  example_2 = "(2) Natural Language Processing (NLP) allows machines to break down and interpret human language. It's at the core of tools we use every day – from translation software, chatbots, spam filters, and search engines, to grammar correction software, voice assistants, and social media monitoring tools."
28
  qst_2 = "What is NLP used for?"
29
 
30
+ example_3 = "Data science continues to evolve as one of the most promising and in-demand career paths for skilled professionals. Today, successful data professionals understand that they must advance past the traditional skills of analyzing large amounts of data, data mining, and programming skills. In order to uncover useful intelligence for their organizations, data scientists must master the full spectrum of the data science life cycle and possess a level of flexibility and understanding to maximize returns at each phase of the process."
31
+ qst_3 = "What is data science"
32
+
33
  # creating the interface
34
  app = gr.Interface(fn=func, inputs = ['textbox', 'text'], outputs = 'textbox',
35
  title = 'Question Answering bot', theme = 'dark-grass',
36
  description = 'Input context and question, then get answers!',
37
  examples = [[example_1, qst_1],
38
+ [example_2, qst_2],
39
+ [example_3, qst_3]]
40
  )
41
 
42
  # launching the app