Rajagopal commited on
Commit
7b1dc49
·
1 Parent(s): c58e43a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -51,6 +51,9 @@ os.environ['OPENAI_API_VERSION'] = '2023-03-15-preview'
51
  llmgpt3 = AzureOpenAI( deployment_name="testdavanci", model_name="text-davinci-003" )
52
  #llmchatgpt = AzureOpenAI( deployment_name="esujnand", model_name="gpt-35-turbo" )
53
 
 
 
 
54
 
55
  with st.form("my_form"):
56
 
@@ -58,6 +61,8 @@ with st.form("my_form"):
58
 
59
  yourquestion = st.text_input('Ask your question on best practices', 'What is Energy Star 4.0 Standard?')
60
  st.write('Your input is ', yourquestion)
 
 
61
 
62
  # Every form must have a submit button.
63
  submitted = st.form_submit_button("Ask question")
 
51
  llmgpt3 = AzureOpenAI( deployment_name="testdavanci", model_name="text-davinci-003" )
52
  #llmchatgpt = AzureOpenAI( deployment_name="esujnand", model_name="gpt-35-turbo" )
53
 
54
+ samplequestions = ["What is Energy Star 4.0 Standard?", "What is RoHS Directive?", "What is Green IT?", "Benefits of greening IT?", "Holistic Approach to Green IT",
55
+ "Using IT: Environmentally Sound Practices", "Designing Green Computers", "Epeat" ]
56
+
57
 
58
  with st.form("my_form"):
59
 
 
61
 
62
  yourquestion = st.text_input('Ask your question on best practices', 'What is Energy Star 4.0 Standard?')
63
  st.write('Your input is ', yourquestion)
64
+ yourquestion = st.selectbox(
65
+ 'Select', samplequestions )
66
 
67
  # Every form must have a submit button.
68
  submitted = st.form_submit_button("Ask question")