niro commited on
Commit
b688ffc
·
1 Parent(s): 1ed62f9
Files changed (2) hide show
  1. README.md +1 -1
  2. question.py +9 -3
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: ChatCSV
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: yellow
 
1
  ---
2
+ title: VantiGPT
3
  emoji: 🏢
4
  colorFrom: purple
5
  colorTo: yellow
question.py CHANGED
@@ -12,13 +12,19 @@ memory = ConversationBufferMemory(
12
  memory_key="chat_history", return_messages=True)
13
  # st.text(st.secrets)
14
  # openai_api_key = st.secrets.openai_api_key_head+st.secrets.openai_api_key_tail
15
- anthropic_api_key = st.secrets.anthropic_api_key
16
- logger = get_logger(__name__)
17
 
18
- openai_api_key = st.secrets.openai_api_key_head+st.secrets.openai_api_key_tail
 
 
 
 
19
  print('niro','niro', openai_api_key)
20
 
21
 
 
 
 
22
  def count_tokens(question, model):
23
  count = f'Words: {len(question.split())}'
24
  if model.startswith("claude"):
 
12
  memory_key="chat_history", return_messages=True)
13
  # st.text(st.secrets)
14
  # openai_api_key = st.secrets.openai_api_key_head+st.secrets.openai_api_key_tail
15
+ # anthropic_api_key = st.secrets.anthropic_api_key
 
16
 
17
+ openai_api_key_head = 'sk-9utMl6JfUfgm4lRIXmK'
18
+ openai_api_key_tail = 'bT3BlbkFJBvNXhwDz9WJrzmi5G6FP'
19
+ openai_api_key = openai_api_key_head+openai_api_key_tail
20
+ anthropic_api_key = ""
21
+ logger = get_logger(__name__)
22
  print('niro','niro', openai_api_key)
23
 
24
 
25
+
26
+
27
+
28
  def count_tokens(question, model):
29
  count = f'Words: {len(question.split())}'
30
  if model.startswith("claude"):