Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import requests
|
|
3 |
from bs4 import BeautifulSoup
|
4 |
from gradio_client import Client
|
5 |
from urllib.parse import urljoin
|
6 |
-
|
7 |
from io import StringIO
|
8 |
import json
|
9 |
import groq
|
@@ -159,6 +159,8 @@ def process_ort(ort):
|
|
159 |
|
160 |
#jsondata = qwen(vereine)
|
161 |
#return jsondata
|
|
|
|
|
162 |
return vereine
|
163 |
|
164 |
for verein in links_text:
|
@@ -190,8 +192,8 @@ def process_ort(ort):
|
|
190 |
# Create the Gradio interface
|
191 |
with gr.Blocks(css=custom_css) as demo:
|
192 |
with gr.Row():
|
193 |
-
|
194 |
-
details_output = gr.Textbox(label="Ausgabe")
|
195 |
with gr.Row():
|
196 |
ort_input = gr.Textbox(label="Ort eingeben", placeholder="ask anything...")
|
197 |
with gr.Row():
|
|
|
3 |
from bs4 import BeautifulSoup
|
4 |
from gradio_client import Client
|
5 |
from urllib.parse import urljoin
|
6 |
+
import pandas as pd
|
7 |
from io import StringIO
|
8 |
import json
|
9 |
import groq
|
|
|
159 |
|
160 |
#jsondata = qwen(vereine)
|
161 |
#return jsondata
|
162 |
+
df = pd.DataFrame(vereine)
|
163 |
+
return df
|
164 |
return vereine
|
165 |
|
166 |
for verein in links_text:
|
|
|
192 |
# Create the Gradio interface
|
193 |
with gr.Blocks(css=custom_css) as demo:
|
194 |
with gr.Row():
|
195 |
+
details_output = gr.DataFrame(label="Ausgabe", elem_id="md")
|
196 |
+
#details_output = gr.Textbox(label="Ausgabe")
|
197 |
with gr.Row():
|
198 |
ort_input = gr.Textbox(label="Ort eingeben", placeholder="ask anything...")
|
199 |
with gr.Row():
|