amitpuri commited on
Commit
22f120c
·
1 Parent(s): 83de32a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
  ]