B2TheOwn commited on
Commit
1e1ca7d
·
verified ·
1 Parent(s): c57e7c6

Delete app.py001

Browse files
Files changed (1) hide show
  1. app.py001 +0 -27
app.py001 DELETED
@@ -1,27 +0,0 @@
1
- import gradio as gr
2
-
3
- def feco_app(name, question):
4
- if question.strip() == "":
5
- return f"Hello {name}, please ask something about Finance Education 📘."
6
- if "course" in question.lower():
7
- return f"Hi {name}, we offer online finance courses. More details coming soon!"
8
- elif "contact" in question.lower():
9
- return f"Hello {name}, you can contact FECO via email: feco@edu.org 📩"
10
- else:
11
- return f"Hello {name}, thanks for your interest in '{question}'. Content is being prepared!"
12
-
13
- with gr.Blocks() as demo:
14
- gr.Image("feco_logo.png", elem_id="logo", show_label=False)
15
- gr.Markdown("# 📚 Finance Education College Online (FECO)")
16
- gr.Markdown("Welcome to our online education platform! 🚀")
17
-
18
- with gr.Row():
19
- name = gr.Textbox(label="Your Name")
20
- question = gr.Textbox(label="Ask a Question")
21
-
22
- output = gr.Textbox(label="Response")
23
- submit_btn = gr.Button("Submit")
24
-
25
- submit_btn.click(feco_app, inputs=[name, question], outputs=output)
26
-
27
- demo.launch()