Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,13 +84,19 @@ def process_ort(ort):
|
|
84 |
#vereine.append(contact_detailes)
|
85 |
vereine.append(json_object)
|
86 |
|
87 |
-
|
|
|
|
|
|
|
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 |
-
|
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 |
)
|