yetessam commited on
Commit
f383dcc
·
verified ·
1 Parent(s): eea921b

Rename ContentGradio_UI.py to ContentGradio.py

Browse files
ContentGradio_UI.py → ContentGradio.py RENAMED
@@ -1,36 +1,5 @@
1
  import gradio as gr
2
 
3
- # Custom CSS styles for sections
4
- css = """
5
- #header {
6
- text-align: center;
7
- font-size: 2em;
8
- margin-bottom: 20px;
9
- color: #333;
10
- }
11
- #user-guidance {
12
- font-size: 1.1em;
13
- color: #555;
14
- margin-bottom: 20px;
15
- }
16
- #main {
17
- padding: 20px;
18
- background-color: #f7f7f7;
19
- margin-bottom: 20px;
20
- border-radius: 5px;
21
- }
22
- #examples {
23
- font-size: 1.1em;
24
- color: #333;
25
- margin-bottom: 20px;
26
- }
27
- #footer {
28
- text-align: center;
29
- color: #888;
30
- font-size: 0.9em;
31
- }
32
- """
33
-
34
  # Function for Main content (takes user input and returns a response)
35
  def process_input(user_input):
36
  return f"You entered: {user_input}"
@@ -74,7 +43,9 @@ def create_footer():
74
 
75
  # Main function to bring all sections together
76
  def ContentAgentUI():
77
- with gr.Blocks(css=css) as ca_gui:
 
 
78
  create_header() # Create the header
79
  create_user_guidance() # Create user guidance section
80
  output = create_main() # Create the main section (returns the output component)
 
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Function for Main content (takes user input and returns a response)
4
  def process_input(user_input):
5
  return f"You entered: {user_input}"
 
43
 
44
  # Main function to bring all sections together
45
  def ContentAgentUI():
46
+
47
+ css_path = os.path.join(os.getcwd(), "ui", "styles.css")
48
+ with gr.Blocks(css=css_path) as ca_gui:
49
  create_header() # Create the header
50
  create_user_guidance() # Create user guidance section
51
  output = create_main() # Create the main section (returns the output component)