dwb2023 commited on
Commit
0ba5cc8
·
verified ·
1 Parent(s): a585f5d

fix imports

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -6,7 +6,7 @@ from gradio import Interface, Blocks
6
  import networkx as nx
7
  import pyvis
8
  from pyvis.network import Network
9
- from smolagents import CodeAgent, HfApiModel, tool
10
  from opentelemetry import trace
11
  from opentelemetry.sdk.trace import TracerProvider
12
  from opentelemetry.sdk.trace.export import BatchSpanProcessor
@@ -38,12 +38,6 @@ examples = [
38
  ["Explore the roles of the Florentine families with the highest centrality values."]
39
  ]
40
 
41
- from smolagents import GradioUI
42
- import gradio as gr
43
-
44
- from smolagents import GradioUI
45
- import gradio as gr
46
-
47
  class GradioUIWithExamples(GradioUI):
48
  def __init__(self, agent, examples=None, **kwargs):
49
  super().__init__(agent, **kwargs)
 
6
  import networkx as nx
7
  import pyvis
8
  from pyvis.network import Network
9
+ from smolagents import CodeAgent, HfApiModel, tool, GradioUI
10
  from opentelemetry import trace
11
  from opentelemetry.sdk.trace import TracerProvider
12
  from opentelemetry.sdk.trace.export import BatchSpanProcessor
 
38
  ["Explore the roles of the Florentine families with the highest centrality values."]
39
  ]
40
 
 
 
 
 
 
 
41
  class GradioUIWithExamples(GradioUI):
42
  def __init__(self, agent, examples=None, **kwargs):
43
  super().__init__(agent, **kwargs)