Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,23 +9,22 @@ footer {visibility: hidden !important;}
|
|
9 |
# Создаем интерфейс с помощью Gradio
|
10 |
with gr.Blocks(css=css, theme='YTheme/TehnoX') as demo:
|
11 |
with gr.Column():
|
12 |
-
gr.Markdown("""#
|
13 |
-
|
14 |
with gr.Row():
|
15 |
gr.Markdown("## SmartLearn")
|
16 |
gr.HTML("""<button class="lg primary svelte-cmf5ev" onclick="window.open('https://docs.google.com/presentation/d/1XcdxCAYjX5w7vSzwzREA0NodD1KQZByYQW-ynCD41PM/edit?usp=drivesdk', '_blank');">Открыть</button>""")
|
17 |
|
18 |
-
with gr.Row():
|
19 |
with gr.Column():
|
20 |
instructions = gr.Textbox(label="empty", visible=False)
|
21 |
-
submit_button = gr.Button("
|
22 |
with gr.Column():
|
23 |
-
output_markdown = gr.Markdown("""
|
24 |
|
25 |
submit_button.click(
|
26 |
fn=f,
|
27 |
inputs=[instructions],
|
28 |
-
outputs=[output_markdown]
|
29 |
-
queue=False
|
30 |
)
|
31 |
demo.launch()
|
|
|
9 |
# Создаем интерфейс с помощью Gradio
|
10 |
with gr.Blocks(css=css, theme='YTheme/TehnoX') as demo:
|
11 |
with gr.Column():
|
12 |
+
gr.Markdown("""# **Мои презентации**
|
13 |
+
#### Данил, добро пожаловать!""")
|
14 |
with gr.Row():
|
15 |
gr.Markdown("## SmartLearn")
|
16 |
gr.HTML("""<button class="lg primary svelte-cmf5ev" onclick="window.open('https://docs.google.com/presentation/d/1XcdxCAYjX5w7vSzwzREA0NodD1KQZByYQW-ynCD41PM/edit?usp=drivesdk', '_blank');">Открыть</button>""")
|
17 |
|
18 |
+
with gr.Row(visible=False):
|
19 |
with gr.Column():
|
20 |
instructions = gr.Textbox(label="empty", visible=False)
|
21 |
+
submit_button = gr.Button("empty", variant='primary', visible=False)
|
22 |
with gr.Column():
|
23 |
+
output_markdown = gr.Markdown("""empty""", visible=False)
|
24 |
|
25 |
submit_button.click(
|
26 |
fn=f,
|
27 |
inputs=[instructions],
|
28 |
+
outputs=[output_markdown]
|
|
|
29 |
)
|
30 |
demo.launch()
|