eswardivi commited on
Commit
2623a01
·
verified ·
1 Parent(s): 0b3ce2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -29,7 +29,8 @@ def process_event(event):
29
 
30
  llm_prompt = f"""
31
 
32
- You are a digital marketing campaign analyst designed to analyze and report digital marketing campaign data for Rod Wave concerts, Your job is to convert the given text into JSON
 
33
 
34
  {{
35
  "market": "str",
@@ -61,7 +62,7 @@ def process_event(event):
61
  """
62
 
63
  chat_completion = openai.chat.completions.create(
64
- model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
65
  messages=[{"role": "user", "content": llm_prompt}],
66
  )
67
  return chat_completion.choices[0].message.content
@@ -70,7 +71,7 @@ def process_all_events(events):
70
  json_all = []
71
  progress_bar = st.progress(0)
72
 
73
- with concurrent.futures.ThreadPoolExecutor(max_workers=6) as executor:
74
  futures = [executor.submit(process_event, event) for event in events]
75
 
76
  for i, future in enumerate(concurrent.futures.as_completed(futures)):
 
29
 
30
  llm_prompt = f"""
31
 
32
+ You are a digital marketing campaign analyst designed to analyze and report digital marketing campaign data for Rod Wave concerts, Your job is to convert the given text into JSON.
33
+ Dont make Any Assumptions,if value doesnt exist,Consider it as Zero.
34
 
35
  {{
36
  "market": "str",
 
62
  """
63
 
64
  chat_completion = openai.chat.completions.create(
65
+ model="Qwen/Qwen2.5-Coder-32B-Instruct",
66
  messages=[{"role": "user", "content": llm_prompt}],
67
  )
68
  return chat_completion.choices[0].message.content
 
71
  json_all = []
72
  progress_bar = st.progress(0)
73
 
74
+ with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
75
  futures = [executor.submit(process_event, event) for event in events]
76
 
77
  for i, future in enumerate(concurrent.futures.as_completed(futures)):