yetessam commited on
Commit
7b954f4
·
verified ·
1 Parent(s): b356cef

Update ContentGradio.py

Browse files
Files changed (1) hide show
  1. ContentGradio.py +7 -4
ContentGradio.py CHANGED
@@ -42,14 +42,14 @@ class ContentAgentUI:
42
  for section in self.sections:
43
  section()
44
 
45
- self.launch()
46
 
47
  def create_header(self):
48
  agent_header = """
49
  #Content Agent
50
  """
51
  with self.ca_gui:
52
- gr.Markdown("<div id='header'>" + agent_header + "</div>")
53
 
54
  def create_user_guidance(self):
55
  guidance = """
@@ -63,8 +63,8 @@ class ContentAgentUI:
63
  Compute is GCP · Nvidia L4 · 4x GPUs · 96 GB
64
  """
65
  with self.ca_gui:
66
- gr.Markdown("<div id='user-guidance'>" + guidance + "</div>")
67
-
68
  def create_main(self):
69
  with self.ca_gui:
70
  with gr.Row():
@@ -80,6 +80,9 @@ class ContentAgentUI:
80
  def create_examples(self):
81
  # Fetch examples by calling get_example() here
82
  examples = get_example()
 
 
 
83
  example_radio = gr.Radio(choices=examples, label="Try one of these examples:")
84
 
85
  # When an example is selected, populate the input field
 
42
  for section in self.sections:
43
  section()
44
 
45
+
46
 
47
  def create_header(self):
48
  agent_header = """
49
  #Content Agent
50
  """
51
  with self.ca_gui:
52
+ gr.Markdown(agent_header)
53
 
54
  def create_user_guidance(self):
55
  guidance = """
 
63
  Compute is GCP · Nvidia L4 · 4x GPUs · 96 GB
64
  """
65
  with self.ca_gui:
66
+ gr.Markdown(guidance)
67
+
68
  def create_main(self):
69
  with self.ca_gui:
70
  with gr.Row():
 
80
  def create_examples(self):
81
  # Fetch examples by calling get_example() here
82
  examples = get_example()
83
+ print("examples")
84
+ print(examples)
85
+
86
  example_radio = gr.Radio(choices=examples, label="Try one of these examples:")
87
 
88
  # When an example is selected, populate the input field