mgokg commited on
Commit
247f988
·
verified ·
1 Parent(s): 57eebf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -149,7 +149,7 @@ def ui_wrapper(dep, dest):
149
  markdown_table = json_to_markdown_table(results)
150
 
151
  #return results, markdown_table
152
- return markdown_table
153
 
154
 
155
  with gr.Blocks(title="DB JSON Fahrplan", theme=gr.themes.Soft()) as demo:
@@ -161,13 +161,13 @@ with gr.Blocks(title="DB JSON Fahrplan", theme=gr.themes.Soft()) as demo:
161
 
162
  btn = gr.Button("🔍 Suchen", variant="primary")
163
 
164
- #gr.Markdown("### JSON Ergebnis")
165
- #output = gr.JSON(label="Rohdaten")
166
 
167
  gr.Markdown("### Formatierte Tabelle")
168
  md_output = gr.Markdown()
169
 
170
- btn.click(fn=ui_wrapper, inputs=[dep_input, dest_input], outputs=md_output)
171
 
172
  if __name__ == "__main__":
173
  demo.launch(mcp_server=True)
 
149
  markdown_table = json_to_markdown_table(results)
150
 
151
  #return results, markdown_table
152
+ return output, markdown_table
153
 
154
 
155
  with gr.Blocks(title="DB JSON Fahrplan", theme=gr.themes.Soft()) as demo:
 
161
 
162
  btn = gr.Button("🔍 Suchen", variant="primary")
163
 
164
+ gr.Markdown("### JSON Ergebnis")
165
+ output = gr.JSON(label="Rohdaten")
166
 
167
  gr.Markdown("### Formatierte Tabelle")
168
  md_output = gr.Markdown()
169
 
170
+ btn.click(fn=ui_wrapper, inputs=[dep_input, dest_input], outputs=[output, md_output])
171
 
172
  if __name__ == "__main__":
173
  demo.launch(mcp_server=True)