Spaces:
Running
Running
Commit
·
930b4f6
1
Parent(s):
ebeb6e9
..
Browse files
app.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
from openai import OpenAI
|
| 2 |
from create import create_gtm,create_usp,create_uvp,create_buyers_persona,set_openai_api_key
|
| 3 |
import gradio as gr # oh yeah!
|
| 4 |
|
|
|
|
|
|
|
| 1 |
from create import create_gtm,create_usp,create_uvp,create_buyers_persona,set_openai_api_key
|
| 2 |
import gradio as gr # oh yeah!
|
| 3 |
|
create.py
CHANGED
|
@@ -4,13 +4,13 @@ from openai import OpenAI
|
|
| 4 |
def set_openai_api_key(apikey):
|
| 5 |
return apikey, "✅ API key has been set and stored!"
|
| 6 |
|
| 7 |
-
system_message = "You are
|
| 8 |
|
| 9 |
def create_gtm(api_key, product,location):
|
| 10 |
openai = OpenAI(api_key=api_key)
|
| 11 |
messages = [
|
| 12 |
{"role": "system", "content": system_message},
|
| 13 |
-
{"role": "user", "content": f"Act like a world class market research specialist. I want to promote {product} at {location}. Share a list of segments, potential geographies, decision-makers should target building a GTM strategy. Please give me the output in tabular format. Sort the segments in the decreasing order of the market size & demand"}
|
| 14 |
]
|
| 15 |
completion = openai.chat.completions.create(
|
| 16 |
model='gpt-4o-mini',
|
|
|
|
| 4 |
def set_openai_api_key(apikey):
|
| 5 |
return apikey, "✅ API key has been set and stored!"
|
| 6 |
|
| 7 |
+
system_message = "You are an expert in market research and you help startups and small businesses. You explain everything in east to understand way to new businessmans"
|
| 8 |
|
| 9 |
def create_gtm(api_key, product,location):
|
| 10 |
openai = OpenAI(api_key=api_key)
|
| 11 |
messages = [
|
| 12 |
{"role": "system", "content": system_message},
|
| 13 |
+
{"role": "user", "content": f"Act like a world class market research specialist. I want to promote {product} at {location}. Share a list of segments, potential geographies, decision-makers should target building a GTM strategy. Please give me the output in tabular format. Sort the segments in the decreasing order of the market size & demand. Only share the table not any other text."}
|
| 14 |
]
|
| 15 |
completion = openai.chat.completions.create(
|
| 16 |
model='gpt-4o-mini',
|