Chan Lee commited on
Commit
63feab9
1 Parent(s): 10fe64b
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -91,11 +91,11 @@ hm = Parallel(hm_bert_io, hm_mental_io, hm_phs_io,
91
  title=hm_title,
92
  description=hm_desc)
93
 
94
- dep_bert_io, dep_mental_io, dep_phs_io = make_interfaces("dp/")
95
- dep = Parallel(dep_bert_io, dep_mental_io, dep_phs_io,
96
- examples=dep_examples,
97
- title=dep_title,
98
- description=dep_desc)
99
 
100
  covid_bert_io, covid_mental_io, covid_phs_io = make_interfaces("cv/")
101
  covid = Parallel(covid_bert_io, covid_mental_io, covid_phs_io,
@@ -126,11 +126,11 @@ desc = "Task is currently unavailable."
126
  def model(text):
127
  return "Predictions are currently unavailable."
128
 
129
- # dep = Interface(fn=model, inputs="text", outputs="text", title=dep_title, description=desc)
130
  # covid = Interface(fn=model, inputs="text", outputs="text", title=covid_title, description=desc)
131
  # suicide = Interface(fn=model, inputs="text", outputs="text", title=suicide_title, description=desc)
132
- stress = Interface(fn=model, inputs="text", outputs="text", title=stress_title, description=desc)
133
- other = Interface(fn=model, inputs="text", outputs="text", title=other_title, description=desc)
134
 
135
  interfaces = [vs, hm, dep, covid, suicide, stress, other]
136
  interface_names = [vs_title, hm_title, dep_title, covid_title, suicide_title, stress_title, other_title]
 
91
  title=hm_title,
92
  description=hm_desc)
93
 
94
+ # dep_bert_io, dep_mental_io, dep_phs_io = make_interfaces("dp/")
95
+ # dep = Parallel(dep_bert_io, dep_mental_io, dep_phs_io,
96
+ # examples=dep_examples,
97
+ # title=dep_title,
98
+ # description=dep_desc)
99
 
100
  covid_bert_io, covid_mental_io, covid_phs_io = make_interfaces("cv/")
101
  covid = Parallel(covid_bert_io, covid_mental_io, covid_phs_io,
 
126
  def model(text):
127
  return "Predictions are currently unavailable."
128
 
129
+ dep = Interface(fn=model, inputs="text", outputs="text", title=dep_title, description=desc)
130
  # covid = Interface(fn=model, inputs="text", outputs="text", title=covid_title, description=desc)
131
  # suicide = Interface(fn=model, inputs="text", outputs="text", title=suicide_title, description=desc)
132
+ # stress = Interface(fn=model, inputs="text", outputs="text", title=stress_title, description=desc)
133
+ # other = Interface(fn=model, inputs="text", outputs="text", title=other_title, description=desc)
134
 
135
  interfaces = [vs, hm, dep, covid, suicide, stress, other]
136
  interface_names = [vs_title, hm_title, dep_title, covid_title, suicide_title, stress_title, other_title]