Rajagopal commited on
Commit
0ea7645
·
1 Parent(s): 0620e33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,7 +23,7 @@ st.title("Wipro impact | The inquisitive sustainability leader: Learn some of t
23
  st.header("Welcome!. Today, What company's sustainability story is inspiring you ?.. ")
24
 
25
 
26
- myurl = st.text_input("Give the URL to find a sustainability or annual report", "Type URL of any company PDF document here")
27
 
28
  yourquestion = st.text_input('Ask your question on best practices', 'What is Wipro plans for Biodiversity in 2024?')
29
  st.write('Your input is ', yourquestion)
@@ -36,8 +36,8 @@ aimethod = st.radio(
36
  os.environ['OPENAI_API_TYPE'] = 'azure'
37
  os.environ['OPENAI_API_VERSION'] = '2023-03-15-preview'
38
 
39
- #llmgpt3 = AzureOpenAI( deployment_name="testdavanci", model_name="text-davinci-003" )
40
- llmchatgpt = AzureOpenAI( deployment_name="esujnand", model_name="gpt-35-turbo" )
41
 
42
  if myurl:
43
  index = None
@@ -59,7 +59,7 @@ if myurl:
59
 
60
 
61
  if yourquestion:
62
- answer = index.query(llm=llmchatgpt, question=yourquestion, chain_type="map_reduce")
63
  st.write(answer)
64
 
65
 
 
23
  st.header("Welcome!. Today, What company's sustainability story is inspiring you ?.. ")
24
 
25
 
26
+ myurl = st.text_input("Give the URL to find a sustainability or annual report", "https://www.wipro.com/content/dam/nexus/en/sustainability/sustainability_reports/wipro-sustainability-report-fy-2021-22.pdf")
27
 
28
  yourquestion = st.text_input('Ask your question on best practices', 'What is Wipro plans for Biodiversity in 2024?')
29
  st.write('Your input is ', yourquestion)
 
36
  os.environ['OPENAI_API_TYPE'] = 'azure'
37
  os.environ['OPENAI_API_VERSION'] = '2023-03-15-preview'
38
 
39
+ llmgpt3 = AzureOpenAI( deployment_name="testdavanci", model_name="text-davinci-003" )
40
+ #llmchatgpt = AzureOpenAI( deployment_name="esujnand", model_name="gpt-35-turbo" )
41
 
42
  if myurl:
43
  index = None
 
59
 
60
 
61
  if yourquestion:
62
+ answer = index.query(llm=llmgpt3, question=yourquestion, chain_type="map_reduce")
63
  st.write(answer)
64
 
65