bstraehle commited on
Commit
21b27f4
·
verified ·
1 Parent(s): fbb3602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -175,12 +175,12 @@ def chat(message, history):
175
  text_values, image_values = extract_content_values(messages)
176
 
177
  print("###")
178
- print("<br />".join(text_values))
179
  print("###")
180
- print("<br />".join(image_values))
181
  print("###")
182
 
183
- return {"<br />".join(text_values)}
184
 
185
  gr.ChatInterface(
186
  fn=chat,
@@ -197,7 +197,7 @@ gr.ChatInterface(
197
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
198
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
199
  ["Execute: First 25 Fibbonaci numbers"],
200
- ["Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Show the code and run it, using mock data."]
201
  ],
202
  cache_examples=False,
203
  ).launch()
 
175
  text_values, image_values = extract_content_values(messages)
176
 
177
  print("###")
178
+ print(text_values)
179
  print("###")
180
+ print(image_values)
181
  print("###")
182
 
183
+ return {text_values[1]}
184
 
185
  gr.ChatInterface(
186
  fn=chat,
 
197
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
198
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
199
  ["Execute: First 25 Fibbonaci numbers"],
200
+ ["Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Use mock data."]
201
  ],
202
  cache_examples=False,
203
  ).launch()