mgokg commited on
Commit
edda91b
·
verified ·
1 Parent(s): 84cbe7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -83,8 +83,8 @@ def save_to_csv(data, filename):
83
  with gr.Blocks() as demo:
84
  gr.Markdown("# ")
85
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
86
- #links_output = gr.Textbox(label="Ergebnisse")
87
- links_output = gr.Markdown(label="Ergebnisse")
88
  json_output = gr.JSON(label="Ergebnisse")
89
 
90
  def process_ort(ort):
@@ -93,6 +93,7 @@ with gr.Blocks() as demo:
93
  json_data = [json.loads(item) for item in contact]
94
  save_to_csv(json_data, './contact_details.csv')
95
  return f"[Download CSV](contact_details.csv)", json_data
 
96
  #return contact
97
  #return pd.DataFrame(json_data)
98
  #return json_data
 
83
  with gr.Blocks() as demo:
84
  gr.Markdown("# ")
85
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
86
+ links_output = gr.Textbox(label="Ergebnisse")
87
+ #links_output = gr.Markdown(label="Ergebnisse")
88
  json_output = gr.JSON(label="Ergebnisse")
89
 
90
  def process_ort(ort):
 
93
  json_data = [json.loads(item) for item in contact]
94
  save_to_csv(json_data, './contact_details.csv')
95
  return f"[Download CSV](contact_details.csv)", json_data
96
+ return links, json_data
97
  #return contact
98
  #return pd.DataFrame(json_data)
99
  #return json_data