eaglelandsonce commited on
Commit
54c9445
1 Parent(s): fccb95f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -30,6 +30,10 @@ gemini_llm = GoogleGenerativeAI(model="gemini-pro", google_api_key=GOOGLE_AI_STU
30
 
31
  # Base Example with Gemini Search
32
 
 
 
 
 
33
  def crewai_process(research_topic):
34
  # Define your agents with roles and goals
35
  crazy1 = Agent(
@@ -87,9 +91,13 @@ def crewai_process(research_topic):
87
 
88
  return result
89
 
 
 
90
  # Create a Gradio interface
91
 
92
  with gr.Blocks() as iface:
 
 
93
  with gr.Row():
94
  with gr.Column(scale=1):
95
  gr.Image(value="crewai/resources/smartmix.jpg")
@@ -99,8 +107,6 @@ with gr.Blocks() as iface:
99
  fn=crewai_process,
100
  inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
101
  outputs="text",
102
- title="SmartMix - Your Safe Place",
103
- description="This is an agent simulated group therapy session providing a safe, judgment-free environment, allowing for open exploration of sensitive topics. Please input the topic you would like to discuss. Active phrases produce realistic interactions."
104
  )
105
 
106
  '''
 
30
 
31
  # Base Example with Gemini Search
32
 
33
+ TITLE1 = """<h1 align="center">SmartMix - Your Safe Place</h1>"""
34
+ TITLE2 = """<h3 align="center">"This is an agent simulated group therapy session providing a safe, judgment-free environment, allowing for open exploration of sensitive topics. Please input the topic you would like to discuss. Active phrases produce realistic interactions."</h3>"""
35
+
36
+
37
  def crewai_process(research_topic):
38
  # Define your agents with roles and goals
39
  crazy1 = Agent(
 
91
 
92
  return result
93
 
94
+
95
+
96
  # Create a Gradio interface
97
 
98
  with gr.Blocks() as iface:
99
+ gr.HTML(TITLE1)
100
+ gr.HTML(TITLE2)
101
  with gr.Row():
102
  with gr.Column(scale=1):
103
  gr.Image(value="crewai/resources/smartmix.jpg")
 
107
  fn=crewai_process,
108
  inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
109
  outputs="text",
 
 
110
  )
111
 
112
  '''