m-ric HF staff commited on
Commit
dce2cf7
1 Parent(s): 779fa75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ end_sequence = "I hope that helps!"
35
  def generate_key_points(text):
36
  prompt = f"""
37
  Please generate a set of key geographical points for the following description: {text}, as a json list of less than 10 dictionnaries with the following keys: 'name', 'description'.
38
- Precise the full location in the 'name' if there is a possible ambiguity: for instance given that there are Chinatowns in several US cities, give the city name to disambiguate.
39
  Generally try to minimize the distance between locations. Always think of the transportation means that you want to use, and the timing: morning, afternoon, where to sleep.
40
  Only generate two sections: 'Thought:' provides your rationale for generating the points, then you list the locations in 'Key points:'.
41
  Then generate '{end_sequence}' to indicate the end of the response.
 
35
  def generate_key_points(text):
36
  prompt = f"""
37
  Please generate a set of key geographical points for the following description: {text}, as a json list of less than 10 dictionnaries with the following keys: 'name', 'description'.
38
+ ALWAYS precise the city and country in the 'name'. For instance do not only "name": "Notre Dame" as the name but "name": "Notre Dame, Paris, France".
39
  Generally try to minimize the distance between locations. Always think of the transportation means that you want to use, and the timing: morning, afternoon, where to sleep.
40
  Only generate two sections: 'Thought:' provides your rationale for generating the points, then you list the locations in 'Key points:'.
41
  Then generate '{end_sequence}' to indicate the end of the response.