qgyd2021 commited on
Commit
b40578e
1 Parent(s): 45e5b5a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -182,7 +182,11 @@ def main():
182
  title="GPT2 Chat",
183
  description=description,
184
  )
185
- demo.queue().launch()
 
 
 
 
186
 
187
  return
188
 
 
182
  title="GPT2 Chat",
183
  description=description,
184
  )
185
+ demo.queue().launch(
186
+ share=False if platform.system() == "Windows" else False,
187
+ server_name="127.0.0.1" if platform.system() == "Windows" else "0.0.0.0",
188
+ server_port=7860
189
+ )
190
 
191
  return
192