Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,7 @@ from dspy.utils import spawn_processes # Distributed computing utility
|
|
14 |
openai = OpenAI(api_key="KEY")
|
15 |
|
16 |
|
17 |
-
# User prompt intake
|
18 |
-
user_prompt = [user prompt]
|
19 |
|
20 |
|
21 |
# Synthetic data generation (using Langchain's Text-Davinci-003 model for illustration)
|
@@ -91,4 +90,4 @@ print("\nVisualization:")
|
|
91 |
print(visualization) # Currently "None" due to placeholder 'visualization'
|
92 |
|
93 |
|
94 |
-
gr.Interface(fn=generate_outputs, inputs=
|
|
|
14 |
openai = OpenAI(api_key="KEY")
|
15 |
|
16 |
|
17 |
+
# User prompt intake was here but was folded into Gradio interface lines
|
|
|
18 |
|
19 |
|
20 |
# Synthetic data generation (using Langchain's Text-Davinci-003 model for illustration)
|
|
|
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()
|