Spaces:
Runtime error
Runtime error
wiraindrak
commited on
Commit
•
6ce2f8e
1
Parent(s):
6b923a7
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
import gradio as gr
|
4 |
-
from gradio.mix import
|
5 |
|
6 |
pretrained_sentiment = "w11wo/indonesian-roberta-base-sentiment-classifier"
|
7 |
pretrained_ner = "cahya/bert-base-indonesian-NER"
|
@@ -46,4 +46,6 @@ ner_demo = gr.Interface(
|
|
46 |
examples=[examples])
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
-
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
import gradio as gr
|
4 |
+
from gradio.mix import Parallel
|
5 |
|
6 |
pretrained_sentiment = "w11wo/indonesian-roberta-base-sentiment-classifier"
|
7 |
pretrained_ner = "cahya/bert-base-indonesian-NER"
|
|
|
46 |
examples=[examples])
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
+
Parallel(sentiment_demo, ner_demo,
|
50 |
+
inputs=gr.Textbox(placeholder="Enter sentence here..."),
|
51 |
+
examples=[examples]).launch()
|