Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -266,7 +266,7 @@ def process_history(history: list[dict]) -> list[dict]:
|
|
266 |
else:
|
267 |
processed_content_parts.append(part)
|
268 |
messages.append({"role": "user", "content": processed_content_parts})
|
269 |
-
|
270 |
return messages
|
271 |
|
272 |
|
@@ -314,7 +314,7 @@ demo = gr.ChatInterface(
|
|
314 |
examples=[
|
315 |
[{"text": "Convert this bank statement to csv", "files": ["assets/additional-examples/bank_statement.png"]}],
|
316 |
[{"text": "What would be the impact of 31% US tariffs (excluding pharma) on Switzerland exports?", "files": []}],
|
317 |
-
[{"text": "My client is
|
318 |
[{"text": "Replicate QQQ excluding exposure to the stock with the highest PE ratio", "files": []}],
|
319 |
[{"text": "GOOG is trading at 150$ today. Is it cheap or is it a 'value trap'?", "files": []}],
|
320 |
[{"text": "Write python code to replicate this graph adding revenue for 2025-2030 assuming 40% yearly growth for Cloud and 10% for Search.", "files": ["assets/additional-examples/rev.png"]}],
|
|
|
266 |
else:
|
267 |
processed_content_parts.append(part)
|
268 |
messages.append({"role": "user", "content": processed_content_parts})
|
269 |
+
print(messages)
|
270 |
return messages
|
271 |
|
272 |
|
|
|
314 |
examples=[
|
315 |
[{"text": "Convert this bank statement to csv", "files": ["assets/additional-examples/bank_statement.png"]}],
|
316 |
[{"text": "What would be the impact of 31% US tariffs (excluding pharma) on Switzerland exports?", "files": []}],
|
317 |
+
[{"text": "My client is a permanent resident in Portugal and has British citizenship. He wants to sell a 10% stake he has in a Delaware registered company. Where will he have to pay taxes?", "files": []}],
|
318 |
[{"text": "Replicate QQQ excluding exposure to the stock with the highest PE ratio", "files": []}],
|
319 |
[{"text": "GOOG is trading at 150$ today. Is it cheap or is it a 'value trap'?", "files": []}],
|
320 |
[{"text": "Write python code to replicate this graph adding revenue for 2025-2030 assuming 40% yearly growth for Cloud and 10% for Search.", "files": ["assets/additional-examples/rev.png"]}],
|