Michelangiolo commited on
Commit
493eace
1 Parent(s): 5ef8da5
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,6 +4,8 @@ os.system('pip install sentence-transformers')
4
  import pandas as pd
5
  import gradio as gr
6
  from sentence_transformers import SentenceTransformer
 
 
7
 
8
  model = SentenceTransformer('all-mpnet-base-v2') #all-MiniLM-L6-v2 #all-mpnet-base-v2
9
 
@@ -103,8 +105,7 @@ def competitor_analysis_foo(startup_array, max_paragraphs):
103
 
104
  Write a {max_paragraphs} paragraph competitors analysis based on this data. Do not name the paragraphs.
105
  """
106
- #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
107
- response = gpt3_question('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', prompt)
108
 
109
  for x in range(10):
110
  response = response.replace(f'Paragraph {x}:', '')
 
4
  import pandas as pd
5
  import gradio as gr
6
  from sentence_transformers import SentenceTransformer
7
+ gpt3_api_key = os.environ['GPT3_API_KEY_CIVILIENCE']
8
+ # gpt3_api_key = os.environ['GPT3_API_KEY_ROBERT']
9
 
10
  model = SentenceTransformer('all-mpnet-base-v2') #all-MiniLM-L6-v2 #all-mpnet-base-v2
11
 
 
105
 
106
  Write a {max_paragraphs} paragraph competitors analysis based on this data. Do not name the paragraphs.
107
  """
108
+ response = gpt3_question(gpt3_api_key, prompt)
 
109
 
110
  for x in range(10):
111
  response = response.replace(f'Paragraph {x}:', '')