Spaces:
Sleeping
Sleeping
umm-maybe
commited on
Commit
·
24cc048
1
Parent(s):
c0bb523
Add description and contact information
Browse files
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.
|
73 |
-
gr.
|
74 |
-
gr.
|
75 |
-
gr.
|
76 |
-
gr.
|
77 |
-
gr.
|
78 |
-
|
|
|
|
|
|
|
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()
|