Delete app.py
Browse files
app.py
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
def get_organization_info():
|
4 |
-
# Эта функция может быть расширена для получения реальных данных о компании
|
5 |
-
name = "YThemes"
|
6 |
-
description = "Creating themes for Gradio interfaces"
|
7 |
-
year_founded = "2022"
|
8 |
-
number_of_employees = "10"
|
9 |
-
website = "https://ythemes.com"
|
10 |
-
return name, description, year_founded, number_of_employees, website
|
11 |
-
|
12 |
-
with gr.Blocks() as ythemes_card:
|
13 |
-
with gr.Row():
|
14 |
-
with gr.Column(scale=1):
|
15 |
-
gr.Markdown("# YThemes")
|
16 |
-
gr.Markdown("### By YUFI")
|
17 |
-
with gr.Column(scale=2):
|
18 |
-
gr.Image(value="path_to_your_logo.png", width=150) # Путь к логотипу компании
|
19 |
-
|
20 |
-
with gr.Row():
|
21 |
-
name, description, year_founded, number_of_employees, website = get_organization_info()
|
22 |
-
with gr.Column():
|
23 |
-
gr.Markdown("#### Name")
|
24 |
-
gr.Markdown(name)
|
25 |
-
with gr.Column():
|
26 |
-
gr.Markdown("#### Description")
|
27 |
-
gr.Markdown(description)
|
28 |
-
with gr.Column():
|
29 |
-
gr.Markdown("#### Year Founded")
|
30 |
-
gr.Markdown(year_founded)
|
31 |
-
|
32 |
-
with gr.Row():
|
33 |
-
with gr.Column():
|
34 |
-
gr.Markdown("#### Employees")
|
35 |
-
gr.Markdown(number_of_employees)
|
36 |
-
with gr.Column():
|
37 |
-
gr.Markdown("#### Website")
|
38 |
-
gr.Markdown(f"[Visit us]({website})")
|
39 |
-
|
40 |
-
ythemes_card.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|