Solshine commited on
Commit
12d7f31
·
verified ·
1 Parent(s): f98ef0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,7 +5,7 @@ def generate_outputs(user_prompt):
5
  report, recommendations, visualization = produce_outputs(combined_data)
6
  return report, recommendations, visualization
7
 
8
- from langchain.llms import OpenAI
9
  from langchain.agents import TextProcessingAgent
10
  from dspy.agents import Agent # Base class for custom agent
11
  from dspy.utils import spawn_processes # Distributed computing utility
@@ -14,8 +14,8 @@ from dspy.utils import spawn_processes # Distributed computing utility
14
  openai = OpenAI(api_key="KEY")
15
 
16
 
17
- # User prompt intake
18
- user_prompt = "What are the potential strategies to increase my online sales?"
19
 
20
 
21
  # Synthetic data generation (using Langchain's Text-Davinci-003 model for illustration)
 
5
  report, recommendations, visualization = produce_outputs(combined_data)
6
  return report, recommendations, visualization
7
 
8
+ from langchain.community.llms import OpenAI
9
  from langchain.agents import TextProcessingAgent
10
  from dspy.agents import Agent # Base class for custom agent
11
  from dspy.utils import spawn_processes # Distributed computing utility
 
14
  openai = OpenAI(api_key="KEY")
15
 
16
 
17
+ # User prompt intake - need to add logic to connect to Gradio
18
+ user_prompt = [user prompt]
19
 
20
 
21
  # Synthetic data generation (using Langchain's Text-Davinci-003 model for illustration)