mgokg commited on
Commit
7d1f991
·
verified ·
1 Parent(s): 79b0e5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -41,13 +41,11 @@ with gr.Blocks(css=custom_css) as demo:
41
  details_output = gr.Markdown(label="answer",elem_id="md")
42
  #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
43
 
44
- with gr.Row():
45
- clearbutton = gr.Button("Clear")
46
  button = gr.Button("Senden")
47
 
48
  # Connect the button to the function
49
- button.click(fn=predict, inputs=ort_input, outputs=details_output)
50
- clearbutton.click(fn=clear, inputs=[], outputs=details_output)
51
 
52
  # Launch the Gradio application
53
  demo.launch()
 
41
  details_output = gr.Markdown(label="answer",elem_id="md")
42
  #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
43
 
44
+ with gr.Row():
 
45
  button = gr.Button("Senden")
46
 
47
  # Connect the button to the function
48
+ button.click(fn=predict, inputs=ort_input, outputs=details_output)
 
49
 
50
  # Launch the Gradio application
51
  demo.launch()