Spaces:
Running
Running
changed to mistral
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, WebSearchTool
|
2 |
import gradio as gr
|
3 |
# Initialize a model (using Hugging Face Inference API)
|
4 |
-
model = InferenceClientModel("
|
5 |
context_prompt ="""
|
6 |
Here is an analysis on how the Trump administration takes decisions:
|
7 |
In a context of billion fueled campaigns, leaders circles naturally integrate their major donors interest preservation to their agendas and that’s where the problem starts. The political leader needs a circle of adivisors, a way of getting expertise to the implementation of his agenda but when this agenda is supposed from the start to discreetly look after the interests of his donours rises the convenient solution of recruiting lobby aware advisors and keeping the debate around the decision making restrained to spheres where the unwritten rule of lobby preservation is respected.
|
@@ -44,5 +44,5 @@ iface = gr.Interface(
|
|
44 |
outputs="text",
|
45 |
title="Trumpslator"
|
46 |
)
|
47 |
-
|
48 |
-
|
|
|
1 |
from smolagents import CodeAgent, InferenceClientModel, DuckDuckGoSearchTool, WebSearchTool
|
2 |
import gradio as gr
|
3 |
# Initialize a model (using Hugging Face Inference API)
|
4 |
+
model = InferenceClientModel("mistralai/Mistral-Small-3.2-24B-Instruct-2506")
|
5 |
context_prompt ="""
|
6 |
Here is an analysis on how the Trump administration takes decisions:
|
7 |
In a context of billion fueled campaigns, leaders circles naturally integrate their major donors interest preservation to their agendas and that’s where the problem starts. The political leader needs a circle of adivisors, a way of getting expertise to the implementation of his agenda but when this agenda is supposed from the start to discreetly look after the interests of his donours rises the convenient solution of recruiting lobby aware advisors and keeping the debate around the decision making restrained to spheres where the unwritten rule of lobby preservation is respected.
|
|
|
44 |
outputs="text",
|
45 |
title="Trumpslator"
|
46 |
)
|
47 |
+
|
48 |
+
iface.launch()
|