Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import os
|
|
2 |
import gradio as gr
|
3 |
import openai
|
4 |
|
5 |
-
from dotenv import load_dotenv
|
6 |
-
load_dotenv()
|
7 |
|
8 |
llm_api_options = ["OpenAI API","Azure OpenAI API","Google PaLM API", "Llama 2"]
|
9 |
TEST_MESSAGE = "My favorite TV shows are The Mentalist, The Blacklist, Designated Survivor, and Unforgettable. What are ten series that I should watch next?"
|
@@ -22,6 +22,7 @@ def test_handler(optionSelection, prompt: str = "Write an introductory paragraph
|
|
22 |
|
23 |
messages = [
|
24 |
{"role": "user", "content": f"{prompt}"},
|
|
|
25 |
{"role": "system", "content": f"{system_prompt}"},
|
26 |
{"role": "assistant", "content": f"{assistant_prompt}"}
|
27 |
]
|
|
|
2 |
import gradio as gr
|
3 |
import openai
|
4 |
|
5 |
+
#from dotenv import load_dotenv
|
6 |
+
#load_dotenv()
|
7 |
|
8 |
llm_api_options = ["OpenAI API","Azure OpenAI API","Google PaLM API", "Llama 2"]
|
9 |
TEST_MESSAGE = "My favorite TV shows are The Mentalist, The Blacklist, Designated Survivor, and Unforgettable. What are ten series that I should watch next?"
|
|
|
22 |
|
23 |
messages = [
|
24 |
{"role": "user", "content": f"{prompt}"},
|
25 |
+
|
26 |
{"role": "system", "content": f"{system_prompt}"},
|
27 |
{"role": "assistant", "content": f"{assistant_prompt}"}
|
28 |
]
|