HoneyTian commited on
Commit
bb7ea32
1 Parent(s): efb9bdb
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -1,6 +1,7 @@
1
  #!/usr/bin/python3
2
  # -*- coding: utf-8 -*-
3
  import argparse
 
4
 
5
  import gradio as gr
6
 
@@ -130,7 +131,11 @@ def main():
130
  outputs=model_dropdown,
131
  )
132
 
133
- blocks.queue().launch()
 
 
 
 
134
 
135
  return
136
 
 
1
  #!/usr/bin/python3
2
  # -*- coding: utf-8 -*-
3
  import argparse
4
+ import platform
5
 
6
  import gradio as gr
7
 
 
131
  outputs=model_dropdown,
132
  )
133
 
134
+ blocks.queue().launch(
135
+ share=False if platform.system() == "Windows" else False,
136
+ server_name="127.0.0.1" if platform.system() == "Windows" else "0.0.0.0",
137
+ server_port=7860
138
+ )
139
 
140
  return
141