Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,13 +15,15 @@ custom_css = """
|
|
15 |
padding-top: 40px;
|
16 |
color: white;
|
17 |
}
|
18 |
-
|
19 |
width: 200px;
|
20 |
float: right;
|
|
|
21 |
}
|
22 |
.clear-button {
|
23 |
float: right;
|
24 |
-
margin-top: 10px;
|
|
|
25 |
}
|
26 |
"""
|
27 |
|
@@ -83,7 +85,7 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default(font=[gr.themes.GoogleFon
|
|
83 |
links_output = gr.Markdown(label="Antwort", elem_id="md")
|
84 |
ort_input = gr.Textbox(label="Frage", placeholder="ask anything...", scale=3, value="")
|
85 |
optimization_mode_input = gr.Dropdown(choices=["speed", "balanced"], label="Optimization Mode", value="speed")
|
86 |
-
button = gr.Button("senden",
|
87 |
button.click(fn=question, inputs=[ort_input, optimization_mode_input], outputs=links_output)
|
88 |
clear_button = gr.Button("clear", elem_classes="clear-button")
|
89 |
clear_button.click(fn=clear, inputs=[], outputs=[ort_input, optimization_mode_input])
|
|
|
15 |
padding-top: 40px;
|
16 |
color: white;
|
17 |
}
|
18 |
+
.senden {
|
19 |
width: 200px;
|
20 |
float: right;
|
21 |
+
background:purple;
|
22 |
}
|
23 |
.clear-button {
|
24 |
float: right;
|
25 |
+
#margin-top: 10px;
|
26 |
+
background:purple;
|
27 |
}
|
28 |
"""
|
29 |
|
|
|
85 |
links_output = gr.Markdown(label="Antwort", elem_id="md")
|
86 |
ort_input = gr.Textbox(label="Frage", placeholder="ask anything...", scale=3, value="")
|
87 |
optimization_mode_input = gr.Dropdown(choices=["speed", "balanced"], label="Optimization Mode", value="speed")
|
88 |
+
button = gr.Button("senden", elem_classes="senden")
|
89 |
button.click(fn=question, inputs=[ort_input, optimization_mode_input], outputs=links_output)
|
90 |
clear_button = gr.Button("clear", elem_classes="clear-button")
|
91 |
clear_button.click(fn=clear, inputs=[], outputs=[ort_input, optimization_mode_input])
|