mgokg commited on
Commit
52bcda4
·
verified ·
1 Parent(s): ae59393

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -5,7 +5,7 @@ from urllib.parse import urljoin
5
  from gradio_client import Client
6
  import json
7
  import csv
8
- import pandas
9
 
10
  client = Client("mgokg/PerplexicaApi")
11
 
@@ -77,14 +77,14 @@ with gr.Blocks() as demo:
77
 
78
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
79
  #links_output = gr.Textbox(label="Ergebnisse")
80
- links_output = gr.Dataframe(label="Ergebnisse", interactive=True)
81
- #links_output = gr.JSON(label="Ergebnisse")
82
 
83
  def process_ort(ort):
84
  links = parse_links_and_content(ort)
85
  contact= scrape_links(links)
86
- return pd.DataFrame(contact)
87
- #return contact
88
 
89
  # Button zum Starten der Parsung
90
  button = gr.Button("senden")
 
5
  from gradio_client import Client
6
  import json
7
  import csv
8
+ #import pandas
9
 
10
  client = Client("mgokg/PerplexicaApi")
11
 
 
77
 
78
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
79
  #links_output = gr.Textbox(label="Ergebnisse")
80
+ #links_output = gr.Dataframe(label="Ergebnisse", interactive=True)
81
+ links_output = gr.JSON(label="Ergebnisse")
82
 
83
  def process_ort(ort):
84
  links = parse_links_and_content(ort)
85
  contact= scrape_links(links)
86
+ #return pd.DataFrame(contact)
87
+ return contact
88
 
89
  # Button zum Starten der Parsung
90
  button = gr.Button("senden")