Spaces:
Runtime error
Runtime error
publichealthsurveillance
commited on
Commit
•
4f7adab
1
Parent(s):
4315cbc
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import ktrain
|
|
2 |
import gradio as gr
|
3 |
from gradio.mix import Parallel
|
4 |
|
5 |
-
examples = [["I only get my kids the ones I got....I've turned down many so called 'vaccines'"], ["Lol what? Measles is a real thing. Get vaccinated
|
6 |
|
7 |
predictor_bert = ktrain.load_predictor('bert')
|
8 |
predictor_mental = ktrain.load_predictor('mentalbert')
|
@@ -25,7 +25,7 @@ mental_io = gr.Interface(fn=mentalbert, inputs="text", outputs="text")
|
|
25 |
# phs_io = gr.Interface(fn=phsbert, inputs="text", outputs="text")
|
26 |
|
27 |
# Parallel(bert_io, mental_io, phs_io).launch()
|
28 |
-
Parallel(bert_io, mental_io, examples=examples
|
29 |
# bert_io.launch()
|
30 |
# mental_io.launch()
|
31 |
# phs_io.launch()
|
|
|
2 |
import gradio as gr
|
3 |
from gradio.mix import Parallel
|
4 |
|
5 |
+
examples = [["I only get my kids the ones I got....I've turned down many so called 'vaccines'"], ["In child protective services, further providing for definitions, for immunity from liability"], ["Lol what? Measles is a real thing. Get vaccinated"]]
|
6 |
|
7 |
predictor_bert = ktrain.load_predictor('bert')
|
8 |
predictor_mental = ktrain.load_predictor('mentalbert')
|
|
|
25 |
# phs_io = gr.Interface(fn=phsbert, inputs="text", outputs="text")
|
26 |
|
27 |
# Parallel(bert_io, mental_io, phs_io).launch()
|
28 |
+
Parallel(bert_io, mental_io, examples=examples).launch()
|
29 |
# bert_io.launch()
|
30 |
# mental_io.launch()
|
31 |
# phs_io.launch()
|