Spaces:
GIZ
/
Running on CPU Upgrade

Romulan12 commited on
Commit
37c2e4c
1 Parent(s): 8b608dc

chnages for disclaimer

Browse files
Files changed (2) hide show
  1. app.py +3 -1
  2. utils/whisp_api.py +3 -1
app.py CHANGED
@@ -27,6 +27,8 @@ SAMPLE_QUESTIONS = {
27
  ]
28
  }
29
 
 
 
30
  # Spanish disclaimer text
31
  DISCLAIMER_TEXT = "\n\n---\n 鈿狅笍 **Descargo de responsabilidad:** El chatbot EUDR puede cometer errores. Verifique la informaci贸n importante con fuentes oficiales. \n"
32
 
@@ -93,7 +95,7 @@ async def chat_response(query, history, method, country, uploaded_file):
93
  response = f"Error retrieving information: {str(e)}"
94
 
95
  # Add disclaimer to the response
96
- response_with_disclaimer = response + DISCLAIMER_TEXT
97
 
98
 
99
  displayed_response = ""
 
27
  ]
28
  }
29
 
30
+
31
+ BEGINNING_TEXT = "**AI-Generated Response:** \n\n"
32
  # Spanish disclaimer text
33
  DISCLAIMER_TEXT = "\n\n---\n 鈿狅笍 **Descargo de responsabilidad:** El chatbot EUDR puede cometer errores. Verifique la informaci贸n importante con fuentes oficiales. \n"
34
 
 
95
  response = f"Error retrieving information: {str(e)}"
96
 
97
  # Add disclaimer to the response
98
+ response_with_disclaimer = BEGINNING_TEXT + response + DISCLAIMER_TEXT
99
 
100
 
101
  displayed_response = ""
utils/whisp_api.py CHANGED
@@ -99,7 +99,9 @@ def format_whisp_statistics(df):
99
  deforestation_formatted = format_deforestation(def_after_2020_raw)
100
  compliance_status = get_compliance_status(def_after_2020_raw)
101
 
102
- output = f"""馃實 **Geographic Analysis Results**
 
 
103
 
104
  馃搷 **Location Details**
105
  - **Country**: {country} \n\n
 
99
  deforestation_formatted = format_deforestation(def_after_2020_raw)
100
  compliance_status = get_compliance_status(def_after_2020_raw)
101
 
102
+ output = f"""" **AI-Generated Response:** \n\n"
103
+
104
+ 馃實 **Geographic Analysis Results** \n\n
105
 
106
  馃搷 **Location Details**
107
  - **Country**: {country} \n\n