Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,6 @@ def weather_report_agent(city):
|
|
206 |
##########################################
|
207 |
|
208 |
with gr.Blocks(theme=gr.themes.Soft(), css="""
|
209 |
-
/* Custom CSS for header and tabs */
|
210 |
.header {
|
211 |
background: linear-gradient(90deg, #4ECB71, #FF6B6B);
|
212 |
padding: 20px;
|
@@ -231,11 +230,6 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
231 |
</div>
|
232 |
""")
|
233 |
|
234 |
-
gr.Markdown("""
|
235 |
-
## Welcome!
|
236 |
-
Explore our comprehensive suite of tools leveraging state-of-the-art AI for business analysis, strategic planning, and real-time insights.
|
237 |
-
""")
|
238 |
-
|
239 |
with gr.Tabs(selected=0, visible=True):
|
240 |
with gr.TabItem("π’ Overview"):
|
241 |
with gr.Row():
|
@@ -252,6 +246,18 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
252 |
- π In-Depth Data Analytics
|
253 |
- π» Custom Software & Multi-Agent Systems
|
254 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
with gr.TabItem("π Web Research"):
|
257 |
with gr.Row():
|
@@ -269,10 +275,10 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
269 |
with gr.TabItem("π Performance"):
|
270 |
gr.Plot(value=create_performance_comparison())
|
271 |
|
272 |
-
with gr.TabItem("π° ROI
|
273 |
gr.Plot(value=create_roi_projection())
|
274 |
|
275 |
-
with gr.TabItem("π Investment
|
276 |
with gr.Row():
|
277 |
loan_amount = gr.Number(label="Investment Amount ($)", value=3000, minimum=1000, maximum=10000)
|
278 |
interest_rate = gr.Slider(label="Annual Interest Rate (%)", minimum=1, maximum=10, value=5, step=0.5)
|
@@ -280,19 +286,6 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
280 |
schedule_output = gr.Textbox(label="Detailed Repayment Schedule", lines=15)
|
281 |
calculate_button.click(calculate_loan_details, inputs=[loan_amount, interest_rate], outputs=[schedule_output])
|
282 |
|
283 |
-
with gr.TabItem("π Web Research"):
|
284 |
-
with gr.Row():
|
285 |
-
url_input = gr.Textbox(label="Enter URL for Analysis", placeholder="https://example.com", lines=1)
|
286 |
-
research_query = gr.Textbox(label="Research Query", placeholder="Enter your research topic", lines=1)
|
287 |
-
with gr.Row():
|
288 |
-
scrape_button = gr.Button("π Scrape Website")
|
289 |
-
research_button = gr.Button("π Research Topic")
|
290 |
-
with gr.Row():
|
291 |
-
scrape_output = gr.Textbox(label="Scraped Content", lines=10)
|
292 |
-
research_output = gr.Textbox(label="Research Results", lines=10)
|
293 |
-
scrape_button.click(web_scrape_agent, inputs=url_input, outputs=scrape_output)
|
294 |
-
research_button.click(research_agent, inputs=research_query, outputs=research_output)
|
295 |
-
|
296 |
with gr.TabItem("π Report Generator"):
|
297 |
report_input = gr.Textbox(label="Enter Content for Summary", placeholder="Paste your text here...", lines=10)
|
298 |
report_button = gr.Button("π Generate Report")
|
@@ -313,23 +306,23 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
313 |
|
314 |
with gr.TabItem("π‘ Personal Pitch"):
|
315 |
gr.Markdown("""
|
316 |
-
### About Me
|
317 |
Hi, I'm a seasoned educator with over a decade of experience teaching English across multiple cultures. My passion for technology has driven me to transition into software development full-time. I'm currently on a mission to become a tech founderβskilled in LLM DevOps, cybersecurity, automation, and creating independent AI systems.
|
318 |
|
319 |
-
### My Goals
|
320 |
-
- **Master Advanced Technologies:** Develop expertise in AI, network architectures, and automation.
|
321 |
-
- **Innovate:** Build scalable, real-time solutions and multi-agent systems that drive business success.
|
322 |
- **Transform:** Leverage cutting-edge GPU technology to accelerate my projects and push the boundaries of innovation.
|
323 |
|
324 |
-
### The Ask
|
325 |
I am seeking funding for a high-performance GPU that will serve as a catalyst for building transformative applications. Your support will not only empower my projects but also pave the way for profitable, real-world solutions.
|
326 |
|
327 |
-
**Support My Journey:**
|
328 |
If you appreciate a hands-on, developer-to-developer approach and want to help fuel the future of innovation, please consider supporting me on Ko-fi: [care to buy me a coffee? :)](https://ko-fi.com/waynesletcher)
|
329 |
|
330 |
Thank you for believing in my vision and joining me on this transformative journey!
|
331 |
""")
|
332 |
-
|
333 |
gr.Markdown("### Thank you for your time and consideration!")
|
334 |
-
|
335 |
-
demo.launch(share=True)
|
|
|
206 |
##########################################
|
207 |
|
208 |
with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
|
209 |
.header {
|
210 |
background: linear-gradient(90deg, #4ECB71, #FF6B6B);
|
211 |
padding: 20px;
|
|
|
230 |
</div>
|
231 |
""")
|
232 |
|
|
|
|
|
|
|
|
|
|
|
233 |
with gr.Tabs(selected=0, visible=True):
|
234 |
with gr.TabItem("π’ Overview"):
|
235 |
with gr.Row():
|
|
|
246 |
- π In-Depth Data Analytics
|
247 |
- π» Custom Software & Multi-Agent Systems
|
248 |
""")
|
249 |
+
|
250 |
+
# Adding website scraping demo in Overview
|
251 |
+
gr.Markdown("### π Live Website Analysis Demo")
|
252 |
+
with gr.Row():
|
253 |
+
demo_url = gr.Textbox(
|
254 |
+
label="Company Website",
|
255 |
+
value="https://sletchersystems.com",
|
256 |
+
lines=1
|
257 |
+
)
|
258 |
+
demo_scrape_button = gr.Button("π Analyze Website")
|
259 |
+
demo_output = gr.Textbox(label="Website Analysis", lines=10)
|
260 |
+
demo_scrape_button.click(web_scrape_agent, inputs=demo_url, outputs=demo_output)
|
261 |
|
262 |
with gr.TabItem("π Web Research"):
|
263 |
with gr.Row():
|
|
|
275 |
with gr.TabItem("π Performance"):
|
276 |
gr.Plot(value=create_performance_comparison())
|
277 |
|
278 |
+
with gr.TabItem("π° ROI"):
|
279 |
gr.Plot(value=create_roi_projection())
|
280 |
|
281 |
+
with gr.TabItem("π Investment"):
|
282 |
with gr.Row():
|
283 |
loan_amount = gr.Number(label="Investment Amount ($)", value=3000, minimum=1000, maximum=10000)
|
284 |
interest_rate = gr.Slider(label="Annual Interest Rate (%)", minimum=1, maximum=10, value=5, step=0.5)
|
|
|
286 |
schedule_output = gr.Textbox(label="Detailed Repayment Schedule", lines=15)
|
287 |
calculate_button.click(calculate_loan_details, inputs=[loan_amount, interest_rate], outputs=[schedule_output])
|
288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
with gr.TabItem("π Report Generator"):
|
290 |
report_input = gr.Textbox(label="Enter Content for Summary", placeholder="Paste your text here...", lines=10)
|
291 |
report_button = gr.Button("π Generate Report")
|
|
|
306 |
|
307 |
with gr.TabItem("π‘ Personal Pitch"):
|
308 |
gr.Markdown("""
|
309 |
+
### About Me
|
310 |
Hi, I'm a seasoned educator with over a decade of experience teaching English across multiple cultures. My passion for technology has driven me to transition into software development full-time. I'm currently on a mission to become a tech founderβskilled in LLM DevOps, cybersecurity, automation, and creating independent AI systems.
|
311 |
|
312 |
+
### My Goals
|
313 |
+
- **Master Advanced Technologies:** Develop expertise in AI, network architectures, and automation.
|
314 |
+
- **Innovate:** Build scalable, real-time solutions and multi-agent systems that drive business success.
|
315 |
- **Transform:** Leverage cutting-edge GPU technology to accelerate my projects and push the boundaries of innovation.
|
316 |
|
317 |
+
### The Ask
|
318 |
I am seeking funding for a high-performance GPU that will serve as a catalyst for building transformative applications. Your support will not only empower my projects but also pave the way for profitable, real-world solutions.
|
319 |
|
320 |
+
**Support My Journey:**
|
321 |
If you appreciate a hands-on, developer-to-developer approach and want to help fuel the future of innovation, please consider supporting me on Ko-fi: [care to buy me a coffee? :)](https://ko-fi.com/waynesletcher)
|
322 |
|
323 |
Thank you for believing in my vision and joining me on this transformative journey!
|
324 |
""")
|
325 |
+
|
326 |
gr.Markdown("### Thank you for your time and consideration!")
|
327 |
+
|
328 |
+
demo.launch(share=True)
|