mgokg commited on
Commit
a224edc
·
verified ·
1 Parent(s): 0a80ca7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -9,7 +9,13 @@ secreturl = os.environ.get('secret_url')
9
 
10
  custom_css = """
11
  #md {
12
- height: 300px; font-size:22px;
 
 
 
 
 
 
13
  }
14
  """
15
 
@@ -93,14 +99,14 @@ def clear():
93
  return clear
94
 
95
  # Erstelle die Gradio-Schnittstelle
96
- with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
97
  gr.Markdown("# Perplexica WebSearch")
98
  ort_input = gr.Textbox(label="Frage", placeholder="ask anything...", value="")
99
  links_output = gr.Markdown(label="Antwort",elem_id="md")
100
 
101
  with gr.Row():
102
- clearbutton = gr.Button("clear")
103
- button = gr.Button("senden")
104
 
105
  button.click(fn=parse_links, inputs=ort_input, outputs=links_output)
106
  clearbutton.click(fn=clear, inputs=[], outputs=links_output)
 
9
 
10
  custom_css = """
11
  #md {
12
+ height: 350px; font-size:24px;
13
+ }
14
+ #senden {
15
+ width: 200px;
16
+ }
17
+ #clear {
18
+ width: 200px;
19
  }
20
  """
21
 
 
99
  return clear
100
 
101
  # Erstelle die Gradio-Schnittstelle
102
+ with gr.Blocks(css=custom_css, submit_button=True, 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
+ button = gr.Button("senden", elem_id="senden")
110
 
111
  button.click(fn=parse_links, inputs=ort_input, outputs=links_output)
112
  clearbutton.click(fn=clear, inputs=[], outputs=links_output)