Update app.py
Browse files
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.
|
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
|
@@ -89,5 +89,5 @@ print(recommendations)
|
|
89 |
print("\nVisualization:")
|
90 |
print(visualization) # Currently "None" due to placeholder 'visualization'
|
91 |
|
92 |
-
|
93 |
gr.Interface(fn=generate_outputs, inputs=user_prompt, outputs=["text", "text", "image"]).launch()
|
|
|
5 |
report, recommendations, visualization = produce_outputs(combined_data)
|
6 |
return report, recommendations, visualization
|
7 |
|
8 |
+
from langchain.community 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
|
|
|
89 |
print("\nVisualization:")
|
90 |
print(visualization) # Currently "None" due to placeholder 'visualization'
|
91 |
|
92 |
+
# Moved from other gradio chunk near the top
|
93 |
gr.Interface(fn=generate_outputs, inputs=user_prompt, outputs=["text", "text", "image"]).launch()
|