Update modules/ui/views/landing_ui.py
Browse files- modules/ui/views/landing_ui.py +24 -25
modules/ui/views/landing_ui.py
CHANGED
@@ -1,27 +1,26 @@
|
|
1 |
-
#modules/ui/
|
2 |
-
|
3 |
import gradio as gr
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
return
|
|
|
1 |
+
# modules/ui/views/landing.py
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
+
class LandingView:
|
5 |
+
def __init__(self):
|
6 |
+
with gr.Blocks() as self.view:
|
7 |
+
with gr.Column():
|
8 |
+
gr.Markdown("# Bienvenido a AIdeaText")
|
9 |
+
gr.Markdown(
|
10 |
+
"""
|
11 |
+
AIdeaText es una herramienta avanzada para an谩lisis y mejora
|
12 |
+
de textos acad茅micos. Utiliza inteligencia artificial para
|
13 |
+
proporcionar retroalimentaci贸n en tiempo real.
|
14 |
+
"""
|
15 |
+
)
|
16 |
+
self.start_button = gr.Button(
|
17 |
+
"Comenzar",
|
18 |
+
variant="primary"
|
19 |
+
)
|
20 |
+
|
21 |
+
@property
|
22 |
+
def submit(self):
|
23 |
+
return self.start_button.click
|
24 |
+
|
25 |
+
def create_landing_view():
|
26 |
+
return LandingView().view
|