mgokg commited on
Commit
ec21f86
·
verified ·
1 Parent(s): 736a204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -9,7 +9,7 @@ secreturl = os.environ.get('secret_url')
9
  custom_css = """
10
  #md {
11
  height: 350px;
12
- font-size: 24px;
13
  background: #121212;
14
  padding: 20px;
15
  padding-top: 40px;
@@ -18,12 +18,10 @@ custom_css = """
18
  #senden {
19
  width: 200px;
20
  float: right;
21
- background: purple;
22
  }
23
- #clear {
24
- width: 200px;
25
  float: right;
26
- background: purple;
27
  }
28
  """
29
 
@@ -85,10 +83,9 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Default(font=[gr.themes.GoogleFon
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
- #with gr.Row():
89
- clear_button = gr.Button("clear", elem_id="clear")
90
- button = gr.Button("senden", elem_id="senden")
91
  button.click(fn=question, inputs=[ort_input, optimization_mode_input], outputs=links_output)
 
92
  clear_button.click(fn=clear, inputs=[], outputs=[ort_input, optimization_mode_input])
93
 
94
  demo.launch()
 
9
  custom_css = """
10
  #md {
11
  height: 350px;
12
+ font-size: 30px;
13
  background: #121212;
14
  padding: 20px;
15
  padding-top: 40px;
 
18
  #senden {
19
  width: 200px;
20
  float: right;
 
21
  }
22
+ .clear-button {
 
23
  float: right;
24
+ margin-top: 10px;
25
  }
26
  """
27
 
 
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", elem_id="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])
90
 
91
  demo.launch()