Skip to content

Commit

Permalink
Merge pull request #104 from azhuge233/main
Browse files Browse the repository at this point in the history
Fix port type error.
  • Loading branch information
Zeqiang-Lai committed Jul 2, 2023
2 parents f7f9f64 + 0d28b21 commit cfe00e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradio_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument('--device', default='cuda')
parser.add_argument('--share', action='store_true')
parser.add_argument('-p', '--port', default=None)
parser.add_argument('-p', '--port', type=int, default=None)
parser.add_argument('--ip', default=None)
args = parser.parse_args()
device = args.device
Expand Down

0 comments on commit cfe00e3

Please sign in to comment.