ibibek commited on
Commit
6523b7a
·
1 Parent(s): 2492342

Update pages/4_AutoEngage.py

Browse files
Files changed (1) hide show
  1. pages/4_AutoEngage.py +10 -10
pages/4_AutoEngage.py CHANGED
@@ -72,8 +72,13 @@ if OpenAI_Key:
72
  st.write(result_2['output'])
73
 
74
  if result_2:
75
- st.subheader('JSON-LD Description')
76
- # lets make gpt to digest our ontology by calling the 16k-model to avoid token limit
 
 
 
 
 
77
  # first initialize the large language model
78
  llm = OpenAI(
79
  temperature=0,
@@ -102,17 +107,12 @@ if OpenAI_Key:
102
  )
103
 
104
  result_3 = count_tokens( conversation_buf,
105
- f""" I'll provide the deception strategy plan to you.
106
- Kindly generate a json-ld portrayal of the strategy, adhering to the ontology you've acquired.
107
- Ensure the json-ld aligns with the ontology framework, and refrain from utilizing any classes not included in the established ontology.
108
-
109
  {result_2['output']}
110
  """
111
  )
112
-
113
-
114
- result_3
115
-
116
  st.write(result_3)
117
 
118
 
 
72
  st.write(result_2['output'])
73
 
74
  if result_2:
75
+ st.write('Please wait, json-ld description will take a time to load...')
76
+
77
+
78
+ # lets make gpt to digest our ontology, call the 16k to avoid token limit
79
+
80
+
81
+
82
  # first initialize the large language model
83
  llm = OpenAI(
84
  temperature=0,
 
107
  )
108
 
109
  result_3 = count_tokens( conversation_buf,
110
+ f""" I will provide you with the deception strategy plan. Please create a json-ld description of the strategy based on the ontology you have learned. The json-ld must comply with the ontology structure. Please do not use classes outside of the given ontology.
111
+ Strategy:
 
 
112
  {result_2['output']}
113
  """
114
  )
115
+ st.subheader('JSON-LD Description')
 
 
 
116
  st.write(result_3)
117
 
118