Ari commited on
Commit
d40b7d4
·
1 Parent(s): 99b345f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -10,10 +10,7 @@ data = pd.read_csv("RR.csv")
10
  # Set your OpenAI API key
11
  openai.api_key = "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"
12
 
13
- graph1 = px.line(data, x="Month", y="Sales Forecasted")
14
- graph2 = px.line(data, x="Month", y="Marketing Budget")
15
- graph3 = px.line(data, x="Month", y="Sales Actual")
16
- graph4 = px.line(data, x="Month", y=["Support Chats", "Support Calls"])
17
 
18
  def query_gpt(prompt):
19
  model_engine = "text-davinci-002" # Use any available GPT model here
@@ -45,12 +42,7 @@ iface = gr.Interface(
45
  inputs=[
46
  gr.inputs.Textbox(lines=2, label="Enter your question"),
47
  ],
48
- outputs=[
49
- gr.outputs.Plot(plot=graph1),
50
- gr.outputs.Plot(plot=graph2),
51
- gr.outputs.Plot(plot=graph3),
52
- gr.outputs.Plot(plot=graph4),
53
- ],
54
  title="GPT-powered Q&A",
55
  description=markdown_data,
56
  examples=[
 
10
  # Set your OpenAI API key
11
  openai.api_key = "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"
12
 
13
+
 
 
 
14
 
15
  def query_gpt(prompt):
16
  model_engine = "text-davinci-002" # Use any available GPT model here
 
42
  inputs=[
43
  gr.inputs.Textbox(lines=2, label="Enter your question"),
44
  ],
45
+
 
 
 
 
 
46
  title="GPT-powered Q&A",
47
  description=markdown_data,
48
  examples=[