Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesva committed Jan 16, 2025
1 parent 2a903cc commit a41f88f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
12 changes: 3 additions & 9 deletions examples/gradio_upload.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
from smolagents import (
CodeAgent,
HfApiModel,
GradioUI
)
from smolagents import CodeAgent, HfApiModel, GradioUI

agent = CodeAgent(
tools=[], model=HfApiModel(), max_steps=4, verbosity_level=0
)
agent = CodeAgent(tools=[], model=HfApiModel(), max_steps=4, verbosity_level=0)

GradioUI(agent, file_upload_folder='./data').launch()
GradioUI(agent, file_upload_folder="./data").launch()
4 changes: 3 additions & 1 deletion examples/inspect_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
# Let's setup the instrumentation first

trace_provider = TracerProvider()
trace_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter("http://0.0.0.0:6006/v1/traces")))
trace_provider.add_span_processor(
SimpleSpanProcessor(OTLPSpanExporter("http://0.0.0.0:6006/v1/traces"))
)

SmolagentsInstrumentor().instrument(tracer_provider=trace_provider, skip_dep_check=True)

Expand Down

0 comments on commit a41f88f

Please sign in to comment.