eaglelandsonce
commited on
Commit
•
4c4c646
1
Parent(s):
db2445c
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ gemini_llm = GoogleGenerativeAI(model="gemini-pro", google_api_key=GOOGLE_AI_STU
|
|
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
|
@@ -98,6 +98,7 @@ def crewai_process(research_topic):
|
|
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")
|
@@ -106,7 +107,7 @@ with gr.Blocks() as iface:
|
|
106 |
run_button_crewai.click(
|
107 |
fn=crewai_process,
|
108 |
inputs=gr.Textbox(lines=2, placeholder="Enter Discussion Topic..."),
|
109 |
-
outputs="
|
110 |
)
|
111 |
|
112 |
'''
|
|
|
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 |
+
TITLE3 = """<h3 align="center">"To see active group discussion click on logs."</h3>"""
|
36 |
|
37 |
def crewai_process(research_topic):
|
38 |
# Define your agents with roles and goals
|
|
|
98 |
with gr.Blocks() as iface:
|
99 |
gr.HTML(TITLE1)
|
100 |
gr.HTML(TITLE2)
|
101 |
+
gr.HTML(TITLE3)
|
102 |
with gr.Row():
|
103 |
with gr.Column(scale=1):
|
104 |
gr.Image(value="crewai/resources/smartmix.jpg")
|
|
|
107 |
run_button_crewai.click(
|
108 |
fn=crewai_process,
|
109 |
inputs=gr.Textbox(lines=2, placeholder="Enter Discussion Topic..."),
|
110 |
+
outputs=gr.Textbox(label="Group Synopsis"),
|
111 |
)
|
112 |
|
113 |
'''
|