mgokg commited on
Commit
c0b26e6
·
verified ·
1 Parent(s): 0be39ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
134
  with gr.Row():
135
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
136
  with gr.Row():
137
- details_output = gr.Textbox(label="Vereinsliste")
138
 
139
  def process_ort(ort):
140
  links_text, links = parse_links_and_content(ort)
@@ -158,7 +158,9 @@ with gr.Blocks() as demo:
158
  #json_dat=gr.Markdown()
159
  #return result
160
  #return result[1]
161
- json_data = gr.Markdown(json_data)
 
 
162
  return json_data
163
 
164
  with gr.Row():
 
134
  with gr.Row():
135
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
136
  with gr.Row():
137
+ details_output = gr.JSON(label="Vereinsliste")
138
 
139
  def process_ort(ort):
140
  links_text, links = parse_links_and_content(ort)
 
158
  #json_dat=gr.Markdown()
159
  #return result
160
  #return result[1]
161
+ json_data = json_data.replace("```json","")
162
+ json_data = json_data.replace("```","")
163
+ json_data = gr.JSONn(json_data)
164
  return json_data
165
 
166
  with gr.Row():