publichealthsurveillance commited on
Commit
90e8d13
1 Parent(s): f7f4330

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -7,7 +7,6 @@ examples = [["I only get my kids the ones I got....I've turned down many so call
7
  # predictor_bert = ktrain.load_predictor('bert')
8
  # predictor_mental = ktrain.load_predictor('mentalbert')
9
  predictor_phs = ktrain.load_predictor('phsbert')
10
- predictor_phs.predict("'vaccines'")
11
 
12
  def bert(text):
13
  results = predictor_bert.predict(str(text))
@@ -18,9 +17,8 @@ def mentalbert(text):
18
  return str(results)
19
 
20
  def phsbert(text):
21
- return str(predictor_phs)
22
- # results = predictor_phs.predict(str(text))
23
- # return str(results)
24
 
25
  # bert_io = gr.Interface(fn=bert, inputs="text", outputs="text")
26
  # mental_io = gr.Interface(fn=mentalbert, inputs="text", outputs="text")
 
7
  # predictor_bert = ktrain.load_predictor('bert')
8
  # predictor_mental = ktrain.load_predictor('mentalbert')
9
  predictor_phs = ktrain.load_predictor('phsbert')
 
10
 
11
  def bert(text):
12
  results = predictor_bert.predict(str(text))
 
17
  return str(results)
18
 
19
  def phsbert(text):
20
+ results = predictor_phs.predict(str(text))
21
+ return str(results)
 
22
 
23
  # bert_io = gr.Interface(fn=bert, inputs="text", outputs="text")
24
  # mental_io = gr.Interface(fn=mentalbert, inputs="text", outputs="text")