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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -39,6 +39,7 @@ os.environ['OPENAI_API_VERSION'] = '2023-03-15-preview'
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
44
  loader1 = PyPDFLoader(myurl)
@@ -54,8 +55,7 @@ if myurl:
54
  ).from_loaders([loader1])
55
 
56
  st.write("loaded")
57
- st.write(langchainembeddings)
58
- st.write(index)
59
 
60
 
61
  if yourquestion:
@@ -63,15 +63,7 @@ if yourquestion:
63
  st.write(answer)
64
 
65
 
66
- aimethod = st.radio(
67
- "Choose a AI brain or document comprehension method",
68
- ('2 minutes AI method map_reduce', '4 minutes AI method refine' ), index=0)
69
-
70
- mychain_type = "map_reduce"
71
- if aimethod == '2 minutes AI method map_reduce':
72
- mychain_type = "map_reduce"
73
- if aimethod == '4 minutes AI method refine':
74
- mychain_type = "refine"
75
 
76
 
77
 
 
39
  llmgpt3 = AzureOpenAI( deployment_name="testdavanci", model_name="text-davinci-003" )
40
  #llmchatgpt = AzureOpenAI( deployment_name="esujnand", model_name="gpt-35-turbo" )
41
 
42
+
43
  if myurl:
44
  index = None
45
  loader1 = PyPDFLoader(myurl)
 
55
  ).from_loaders([loader1])
56
 
57
  st.write("loaded")
58
+
 
59
 
60
 
61
  if yourquestion:
 
63
  st.write(answer)
64
 
65
 
66
+
 
 
 
 
 
 
 
 
67
 
68
 
69