Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ custom_css = """
|
|
12 |
height: 350px; font-size:28px;
|
13 |
}
|
14 |
#senden {
|
15 |
-
width: 200px;
|
16 |
}
|
17 |
#clear {
|
18 |
-
width: 200px;
|
19 |
}
|
20 |
"""
|
21 |
|
@@ -103,12 +103,10 @@ with gr.Blocks(css=custom_css, theme = gr.themes.Soft()) as demo:
|
|
103 |
gr.Markdown("# Perplexica WebSearch")
|
104 |
ort_input = gr.Textbox(label="Frage", placeholder="ask anything...", value="")
|
105 |
links_output = gr.Markdown(label="Antwort",elem_id="md")
|
106 |
-
|
|
|
107 |
#with gr.Row():
|
108 |
-
#clearbutton = gr.Button("clear", elem_id="clear")
|
109 |
-
|
110 |
-
|
111 |
button.click(fn=parse_links, inputs=ort_input, outputs=links_output)
|
112 |
-
|
113 |
|
114 |
demo.launch()
|
|
|
12 |
height: 350px; font-size:28px;
|
13 |
}
|
14 |
#senden {
|
15 |
+
width: 200px; float:right;
|
16 |
}
|
17 |
#clear {
|
18 |
+
width: 200px; float:right;
|
19 |
}
|
20 |
"""
|
21 |
|
|
|
103 |
gr.Markdown("# Perplexica WebSearch")
|
104 |
ort_input = gr.Textbox(label="Frage", placeholder="ask anything...", value="")
|
105 |
links_output = gr.Markdown(label="Antwort",elem_id="md")
|
106 |
+
clearbutton = gr.Button("clear", elem_id="clear")
|
107 |
+
button = gr.Button("senden", elem_id="senden")
|
108 |
#with gr.Row():
|
|
|
|
|
|
|
109 |
button.click(fn=parse_links, inputs=ort_input, outputs=links_output)
|
110 |
+
clearbutton.click(fn=clear, inputs=[], outputs=links_output)
|
111 |
|
112 |
demo.launch()
|