Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,6 @@ def generate_outputs(user_prompt):
|
|
| 5 |
report, recommendations, visualization = produce_outputs(combined_data)
|
| 6 |
return report, recommendations, visualization
|
| 7 |
|
| 8 |
-
gr.Interface(fn=generate_outputs, inputs="text", outputs=["text", "text", "image"]).launch()
|
| 9 |
-
|
| 10 |
from langchain.llms import OpenAI
|
| 11 |
from langchain.agents import TextProcessingAgent
|
| 12 |
from dspy.agents import Agent # Base class for custom agent
|
|
@@ -90,4 +88,7 @@ print(report)
|
|
| 90 |
print("\nRecommendations:")
|
| 91 |
print(recommendations)
|
| 92 |
print("\nVisualization:")
|
| 93 |
-
print(visualization) # Currently "None" due to placeholder 'visualization'
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
|
|
|
| 88 |
print("\nRecommendations:")
|
| 89 |
print(recommendations)
|
| 90 |
print("\nVisualization:")
|
| 91 |
+
print(visualization) # Currently "None" due to placeholder 'visualization'
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
gr.Interface(fn=generate_outputs, inputs="text", outputs=["text", "text", "image"]).launch()
|