Update main.py
Browse files
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 |
|