imamnurby commited on
Commit
862cf97
1 Parent(s): e790df4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -88,9 +88,23 @@ def generate_preds_field(desc_field, num_beams_field, num_returned_seqs_field):
88
 
89
  demo = gr.Blocks()
90
  with demo:
91
- gr.Markdown("<h1><center>RecipeGen: Automated TAPs Generation Tool</center></h1>")
92
- gr.Markdown("<center>This demo allows you to generate TAPs (Trigger Action Programs) using functionality description described in English. You can learn the working detail of our tool from our paper<center>")
93
- gr.Markdown("<h3>Instructions<h3>")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  gr.Markdown("""
95
  1. Select the generation granularity (i.e., Channel, Function, or Field)
96
  2. Describe your intended functionality
 
88
 
89
  demo = gr.Blocks()
90
  with demo:
91
+ gr.Markdown("<h1><center>RecipeGen: Automated Trigger Action Programs (TAPs) Generation Tool</center></h1>")
92
+ # gr.Markdown("This demo allows you to generate TAPs using functionality description described in English. You can learn the working detail of our tool from our paper")
93
+ gr.Markdown("<h3>What is TAP?</h3>")
94
+ gr.Markdown("""
95
+ TAPs or Trigger Action Programs are an event-driven rules used to automate smart devices and/or internet services. TAPs are written in the form of "IF <trigger> then execute <action>,
96
+ where <trigger> and <action> refer to API calls. TAPs has been used in various use cases, ranging from home monitoring system to business workflow automation.
97
+ """)
98
+ gr.Markdown("<h3>Why generating TAPs can be challenging?</h3>")
99
+ gr.Markdown("""
100
+ Generating TAP is challenging mainly because of the large search space of the API calls that can be used as the trigger and action.
101
+ """)
102
+ gr.Markdown("<h3>RecipeGen</h3?>")
103
+ gr.Markdown("""
104
+ RecipeGen is a deep learning-based tool that can assist end-users to generate TAPs using natural language description. End-users can describe the functionality of the intended TAP, then RecipeGen
105
+ will generate the candidate TAPs based those descriptions.
106
+ """)
107
+ gr.Markdown("<h3>Instructions</h3>")
108
  gr.Markdown("""
109
  1. Select the generation granularity (i.e., Channel, Function, or Field)
110
  2. Describe your intended functionality