cptcrk commited on
Commit
749386f
Β·
verified Β·
1 Parent(s): ba880d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -15
app.py CHANGED
@@ -84,7 +84,7 @@ example_sentences_bottom = [
84
 
85
  # Functie om voorbeeldzinnen in het invoerveld te zetten
86
  def fill_example(example):
87
- return example
88
 
89
  # Gradio-interface met duidelijke instructies en styling
90
  with gr.Blocks() as demo:
@@ -121,17 +121,6 @@ with gr.Blocks() as demo:
121
  for example in example_sentences_bottom:
122
  gr.Button(example).click(fill_example, inputs=[], outputs=input_box, queue=False)
123
 
124
- # CSS voor styling (lichtgroene knop)
125
- css = """
126
- #analyze-btn {
127
- background-color: #90EE90 !important;
128
- color: black !important;
129
- font-weight: bold;
130
- font-size: 16px;
131
- padding: 10px 20px;
132
- border-radius: 8px;
133
- }
134
- """
135
-
136
- # Start de app met extra CSS-styling
137
- demo.launch(share=True, css=css)
 
84
 
85
  # Functie om voorbeeldzinnen in het invoerveld te zetten
86
  def fill_example(example):
87
+ return gr.update(value=example)
88
 
89
  # Gradio-interface met duidelijke instructies en styling
90
  with gr.Blocks() as demo:
 
121
  for example in example_sentences_bottom:
122
  gr.Button(example).click(fill_example, inputs=[], outputs=input_box, queue=False)
123
 
124
+ # Start de app
125
+ demo.launch()
126
+