eaglelandsonce
commited on
Commit
•
ef368b1
1
Parent(s):
b0cd33a
Update app.py
Browse files
app.py
CHANGED
@@ -88,6 +88,22 @@ def crewai_process(research_topic):
|
|
88 |
return result
|
89 |
|
90 |
# Create a Gradio interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
iface = gr.Interface(
|
92 |
fn=crewai_process,
|
93 |
inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
|
@@ -95,6 +111,7 @@ iface = gr.Interface(
|
|
95 |
title="SmartMix - Your Safe Place",
|
96 |
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."
|
97 |
)
|
|
|
98 |
|
99 |
# Launch the interface
|
100 |
iface.launch(debug=True)
|
|
|
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="resources/smartmix.jpg")
|
96 |
+
with gr.Column(scale=5):
|
97 |
+
run_button_crewai = gr.Button(value="Run", variant="primary", scale=1)
|
98 |
+
run_button_crewai.click(
|
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 |
+
'''
|
107 |
iface = gr.Interface(
|
108 |
fn=crewai_process,
|
109 |
inputs=gr.Textbox(lines=2, placeholder="Enter Research Topic Here..."),
|
|
|
111 |
title="SmartMix - Your Safe Place",
|
112 |
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."
|
113 |
)
|
114 |
+
'''
|
115 |
|
116 |
# Launch the interface
|
117 |
iface.launch(debug=True)
|