Spaces:
GIZ
/
Running on CPU Upgrade

Romulan12 commited on
Commit
36e8f83
·
1 Parent(s): a4e8dda

update versions + retriever function

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. requirements.txt +2 -2
app.py CHANGED
@@ -31,6 +31,7 @@ def get_value(df, colname):
31
  if not match.empty:
32
  return match.values[0]
33
  return "Not available"
 
34
  def format_whisp_statistics(df):
35
  """Format WhispAPI statistics into readable text for end-users"""
36
  try:
@@ -112,7 +113,7 @@ def retrieve_paragraphs(query):
112
 
113
  try:
114
  # Call the API with the uploaded file
115
- client = Client("https://giz-chatfed-retriever.hf.space/")
116
  result = client.predict(
117
  query=query,
118
  reports_filter="",
 
31
  if not match.empty:
32
  return match.values[0]
33
  return "Not available"
34
+
35
  def format_whisp_statistics(df):
36
  """Format WhispAPI statistics into readable text for end-users"""
37
  try:
 
113
 
114
  try:
115
  # Call the API with the uploaded file
116
+ client = Client("https://giz-eudr-retriever.hf.space/")
117
  result = client.predict(
118
  query=query,
119
  reports_filter="",
requirements.txt CHANGED
@@ -30,8 +30,8 @@ filelock==3.15.4
30
  fonttools==4.53.1
31
  frozenlist==1.4.1
32
  fsspec==2024.5.0
33
- gradio-client==1.1.1
34
- gradio==4.39.0
35
  greenlet==3.0.3
36
  grpcio-tools==1.65.4
37
  grpcio==1.65.4
 
30
  fonttools==4.53.1
31
  frozenlist==1.4.1
32
  fsspec==2024.5.0
33
+ gradio-client==1.3.0
34
+ gradio==4.44.1
35
  greenlet==3.0.3
36
  grpcio-tools==1.65.4
37
  grpcio==1.65.4