Solshine commited on
Commit
a88c1e5
1 Parent(s): 12d7f31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 - 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)
@@ -91,4 +90,4 @@ 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()
 
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()