Spaces:
Running
on
Zero
Running
on
Zero
Remove port args
Browse files
app.py
CHANGED
@@ -301,7 +301,7 @@ def generate(
|
|
301 |
)
|
302 |
|
303 |
|
304 |
-
def main(
|
305 |
download_all_models()
|
306 |
|
307 |
# get the language model outputs
|
@@ -543,12 +543,9 @@ def main(args):
|
|
543 |
inputs=[prompt_input],
|
544 |
)
|
545 |
|
546 |
-
launch_args = {
|
547 |
demo.queue(default_concurrency_limit=1).launch(**launch_args)
|
548 |
|
549 |
|
550 |
if __name__ == "__main__":
|
551 |
-
|
552 |
-
parser.add_argument("--port", type=int, default=7860)
|
553 |
-
args = parser.parse_known_args()[0]
|
554 |
-
main(args)
|
|
|
301 |
)
|
302 |
|
303 |
|
304 |
+
def main():
|
305 |
download_all_models()
|
306 |
|
307 |
# get the language model outputs
|
|
|
543 |
inputs=[prompt_input],
|
544 |
)
|
545 |
|
546 |
+
launch_args = {}
|
547 |
demo.queue(default_concurrency_limit=1).launch(**launch_args)
|
548 |
|
549 |
|
550 |
if __name__ == "__main__":
|
551 |
+
main()
|
|
|
|
|
|