Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def evaluate(
|
|
| 29 |
|
| 30 |
df_result = pd.DataFrame([[instruction, input, None, None],],columns=["instruction" ,"input", "output", "total_tokens"])
|
| 31 |
|
| 32 |
-
lang = detect(
|
| 33 |
|
| 34 |
if os.environ["PROMPT2"] not in message or lang == "ja":
|
| 35 |
response = openai.ChatCompletion.create(
|
|
|
|
| 29 |
|
| 30 |
df_result = pd.DataFrame([[instruction, input, None, None],],columns=["instruction" ,"input", "output", "total_tokens"])
|
| 31 |
|
| 32 |
+
lang = detect(instruction)
|
| 33 |
|
| 34 |
if os.environ["PROMPT2"] not in message or lang == "ja":
|
| 35 |
response = openai.ChatCompletion.create(
|