Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#1: Removing —input-file flag for the Output Volume Construction
Signed-off-by: Deepanshu Arora <[email protected]>
  • Loading branch information
Deepansharora27 committed Jul 31, 2023
commit 6e92b4e488c6334a7f9a727ae73a1e3f3a7bdd6e
8 changes: 3 additions & 5 deletions fastchat/serve/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def main(args):
elif args.style == "rich":
chatio = RichChatIO(args.multiline, args.mouse)
elif args.style == "programmatic":
chatio = FileInputChatIO(args.input_file)
input_prompt_file = "input_prompt.txt"
input_file_path = os.path.abspath(input_prompt_file)
chatio = FileInputChatIO(input_file_path)
else:
raise ValueError(f"Invalid style for console: {args.style}")
try:
Expand Down Expand Up @@ -221,10 +223,6 @@ def main(args):
choices=["simple", "rich", "programmatic"],
help="Display style.",
)
parser.add_argument(
"--input-file", type=str, default=None,
help="Path to the file containing chat input messages.",
)
parser.add_argument(
"--multiline",
action="store_true",
Expand Down