mgokg commited on
Commit
21f998a
·
verified ·
1 Parent(s): db7669b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import pandas
10
  import os
11
 
12
  #api_key = os.getenv('groq')
13
-
14
 
15
  def parse_links_and_content(ort):
16
  base_url = "https://vereine-in-deutschland.net"
@@ -67,6 +67,7 @@ def scrape_links(links):
67
  client = Client("mgokg/PerplexicaApi")
68
  for verein in links:
69
  result = client.predict(
 
70
  prompt=f"{verein}",
71
  api_name="/parse_links"
72
  )
 
10
  import os
11
 
12
  #api_key = os.getenv('groq')
13
+ read_key = os.environ.get('HF_TOKEN', None)
14
 
15
  def parse_links_and_content(ort):
16
  base_url = "https://vereine-in-deutschland.net"
 
67
  client = Client("mgokg/PerplexicaApi")
68
  for verein in links:
69
  result = client.predict(
70
+ hf_token=read_key,
71
  prompt=f"{verein}",
72
  api_name="/parse_links"
73
  )