Spaces:
Running
Running
Update cli.py
Browse files
cli.py
CHANGED
@@ -2,7 +2,12 @@ import argparse
|
|
2 |
import os
|
3 |
import time
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
|
8 |
def parse_arguments(model, system_prompt, next_prompts, num_turns, show_next, final_prompt,
|
@@ -106,4 +111,4 @@ def go_cli():
|
|
106 |
if not show_cot:
|
107 |
print("**FULL RESPONSE:**\n\n")
|
108 |
print(response)
|
109 |
-
return response
|
|
|
2 |
import os
|
3 |
import time
|
4 |
|
5 |
+
if os.getenv('STRAWBERRY_VERSION', '1') == '1' or os.getenv('STRAWBERRY_VERSION') is None:
|
6 |
+
from src.open_strawberry import get_defaults, manage_conversation
|
7 |
+
elif os.getenv('STRAWBERRY_VERSION', '2') == '2':
|
8 |
+
from src.open_strawberry2 import get_defaults, manage_conversation
|
9 |
+
else:
|
10 |
+
raise ValueError("STRAWBERRY_VERSION not set correctly")
|
11 |
|
12 |
|
13 |
def parse_arguments(model, system_prompt, next_prompts, num_turns, show_next, final_prompt,
|
|
|
111 |
if not show_cot:
|
112 |
print("**FULL RESPONSE:**\n\n")
|
113 |
print(response)
|
114 |
+
return response
|