qgyd2021 commited on
Commit
aab0209
1 Parent(s): 7e5a2bc

[update]add model

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -2,6 +2,7 @@
2
  # -*- coding: utf-8 -*-
3
  import argparse
4
  import os
 
5
  import time
6
 
7
  from allennlp.data.tokenizers.pretrained_transformer_tokenizer import PretrainedTransformerTokenizer
@@ -132,7 +133,7 @@ def main():
132
  title="Telemarketing Intent Classification",
133
  description=description,
134
  )
135
- demo.launch(share=True)
136
 
137
  return
138
 
 
2
  # -*- coding: utf-8 -*-
3
  import argparse
4
  import os
5
+ import platform
6
  import time
7
 
8
  from allennlp.data.tokenizers.pretrained_transformer_tokenizer import PretrainedTransformerTokenizer
 
133
  title="Telemarketing Intent Classification",
134
  description=description,
135
  )
136
+ demo.launch(share=True if platform.system() == "Windows" else False)
137
 
138
  return
139