umm-maybe commited on
Commit
24cc048
·
1 Parent(s): c0bb523

Add description and contact information

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -69,11 +69,14 @@ def getTour(income,size,years,sex,edu,wrk):
69
  return activity_list
70
 
71
  with gr.Interface(fn=getTour, inputs=[
72
- gr.inputs.Textbox(label="Annual Household Income (in dollars)"),
73
- gr.inputs.Textbox(label="Household Size (number of people)"),
74
- gr.inputs.Textbox(label="Traveler Age (years)"),
75
- gr.inputs.Dropdown(["unknown", "male", "female"], label="Gender/sex"),
76
- gr.inputs.Dropdown(["unknown", "grade school","highschool", "associates", "bachelors", "graduate"], label="Educational attainment level"),
77
- gr.inputs.Dropdown(["unknown", "yes","no"], label="Worker status")],
78
- outputs=["json"], title="GPT-Tour", description="Generate a tour for a person", allow_flagging='never') as iface:
 
 
 
79
  iface.launch()
 
69
  return activity_list
70
 
71
  with gr.Interface(fn=getTour, inputs=[
72
+ gr.Markdown("## Activity Sequence Modeling Using Transformers"),
73
+ gr.Markdown("This demo uses a GPT-2 model fine-tuned on activity sequences from the 2017 National Household Travel Survey (NHTS) to generate activity sequences for a given person. The model is trained to predict the next activity in a sequence given the previous activities, and is conditioned on person-level and household-level attributes."),
74
+ gr.Markdown("# For more information, contact: [email protected]"),
75
+ gr.Textbox(label="Annual Household Income (in dollars)"),
76
+ gr.Textbox(label="Household Size (number of people)"),
77
+ gr.Textbox(label="Traveler Age (years)"),
78
+ gr.Dropdown(["unknown", "male", "female"], label="Gender/sex"),
79
+ gr.Dropdown(["unknown", "grade school","highschool", "associates", "bachelors", "graduate"], label="Educational attainment level"),
80
+ gr.Dropdown(["unknown", "yes","no"], label="Worker status")],
81
+ outputs=["json"], title="GPT-Travel", description="Activity Sequence Modeling Using Transformers", allow_flagging='never') as iface:
82
  iface.launch()