Create app.py
Browse files
app.py
CHANGED
|
@@ -1,26 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 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.Markdown("# 📚 Finance Education College Online (FECO)")
|
| 15 |
-
gr.Markdown("Welcome to our online education platform! 🚀")
|
| 16 |
-
|
| 17 |
-
with gr.Row():
|
| 18 |
-
name = gr.Textbox(label="Your Name")
|
| 19 |
-
question = gr.Textbox(label="Ask a Question")
|
| 20 |
-
|
| 21 |
-
output = gr.Textbox(label="Response")
|
| 22 |
-
submit_btn = gr.Button("Submit")
|
| 23 |
-
|
| 24 |
-
submit_btn.click(feco_app, inputs=[name, question], outputs=output)
|
| 25 |
-
|
| 26 |
-
demo.launch()
|
|
|
|
| 1 |
+
#logo {
|
| 2 |
+
max-width: 180px;
|
| 3 |
+
margin: auto;
|
| 4 |
+
display: block;
|
| 5 |
+
}
|
| 6 |
+
h1 {
|
| 7 |
+
color: #004080; /* deep blue */
|
| 8 |
+
text-align: center;
|
| 9 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|