Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ api_key = os.getenv('groq')
|
|
24 |
client = groq.Client(api_key=api_key)
|
25 |
|
26 |
def qwen(jsondata):
|
27 |
-
|
28 |
-
result =
|
29 |
query= f"return valid json \n {jsondata}",
|
30 |
history=[],
|
31 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
@@ -88,12 +88,10 @@ def process_ort(ort):
|
|
88 |
links_text = list_of_clubs(ort)
|
89 |
vereine = []
|
90 |
|
91 |
-
for verein in links_text:
|
92 |
-
|
93 |
headers = {
|
94 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
95 |
-
}
|
96 |
-
|
97 |
url = f"https://www.google.com/search?q=impressum {verein}"
|
98 |
response = requests.get(url, headers=headers)
|
99 |
soup = BeautifulSoup(response.content, 'html.parser')
|
|
|
24 |
client = groq.Client(api_key=api_key)
|
25 |
|
26 |
def qwen(jsondata):
|
27 |
+
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
+
result = client.predict(
|
29 |
query= f"return valid json \n {jsondata}",
|
30 |
history=[],
|
31 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
|
|
88 |
links_text = list_of_clubs(ort)
|
89 |
vereine = []
|
90 |
|
91 |
+
for verein in links_text:
|
|
|
92 |
headers = {
|
93 |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
94 |
+
}
|
|
|
95 |
url = f"https://www.google.com/search?q=impressum {verein}"
|
96 |
response = requests.get(url, headers=headers)
|
97 |
soup = BeautifulSoup(response.content, 'html.parser')
|