jeevavijay10 commited on
Commit
0f76f71
1 Parent(s): 9694995

added examples

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -27,11 +27,19 @@ def chatbot(inputAssignment):
27
  print(response)
28
  return response
29
 
 
 
 
 
 
 
 
 
30
 
31
  iface = gr.Interface(fn=chatbot,
32
  inputs=gr.inputs.Textbox(
33
  label="Provide an assignment to evaluate."),
34
  outputs="text",
35
- title="Formative Feedback")
36
 
37
  iface.launch()
 
27
  print(response)
28
  return response
29
 
30
+ example1 = """Artificial Intelligence (AI) includes groups of technologies that cover different fields such as machine and deep learning, predictive analytics, process automation, speech recognition, biometrics, and natural language processing. AI is seen by many businesses as the answer to increasing costs of human employment and used in a large number of industries in different ways. It has allowed the implementation of smart cities, developments in the medical sciences, special effects in movies and even the management of back-office type work. However, major concerns have been raised by many critics, some who are from the ICT fields themselves, that the use of AI must be controlled to prevent an unethical takeover by machines over humans.
31
+
32
+ You are the Head of ICT in a large logistics organisation with over 200 staff, established around 20 years ago. Your organisation’s head office is based in Sydney but it operates in various states of Australia and some countries in the Oceania region as well. Your organisation provides end to end logistics solutions to a large number of companies including warehousing, manufacturing and mining. Some of your client companies are expanding and they would like you to provide logistical solutions based on AI.
33
+
34
+ As a result, your organisation is now exploring options to expand the business in the next five years to include services based on AI. As a part of their expansion plans, the CEO of your organisation has asked you to investigate the technology and types of applications that can be used to provide services to your clients in the warehousing, manufacturing and mining industries. On the other hand, he wants to ensure that ethical limits of using AI are also observed with the use of AI. You have to complete this investigation in the next three weeks and draft a report with some recommendations for the next Executive Management meeting."""
35
+
36
+
37
+ example2 = """Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."""
38
 
39
  iface = gr.Interface(fn=chatbot,
40
  inputs=gr.inputs.Textbox(
41
  label="Provide an assignment to evaluate."),
42
  outputs="text",
43
+ title="Formative Feedback", examples=[example1, example2])
44
 
45
  iface.launch()