mgokg commited on
Commit
ab48c87
·
verified ·
1 Parent(s): 48b6af1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -84,13 +84,19 @@ def process_ort(ort):
84
  #vereine.append(contact_detailes)
85
  vereine.append(json_object)
86
 
87
- return vereine
 
 
 
88
 
 
 
 
89
  demo = gr.Interface(
90
  fn=process_ort,
91
  inputs=gr.Textbox(lines=1, placeholder="Geben Sie Ihre Suchanfrage ein..."),
92
- outputs="text",
93
- #outputs=gr.JSON(),
94
  title="# google websearch",
95
  description="Geben Sie eine Suchanfrage ein..."
96
  )
 
84
  #vereine.append(contact_detailes)
85
  vereine.append(json_object)
86
 
87
+ # Convert JSON string to Python dictionary
88
+ data_dict = json.loads(vereine)
89
+ # Convert dictionary to DataFrame
90
+ df = pd.DataFrame(data_dict)
91
 
92
+ return df
93
+ return vereine
94
+
95
  demo = gr.Interface(
96
  fn=process_ort,
97
  inputs=gr.Textbox(lines=1, placeholder="Geben Sie Ihre Suchanfrage ein..."),
98
+ #outputs="text",
99
+ outputs=gr.DataFrame(label="Ausgabe"),
100
  title="# google websearch",
101
  description="Geben Sie eine Suchanfrage ein..."
102
  )