Spaces:
Running
on
Zero
Running
on
Zero
Suchinthana
commited on
Commit
·
2ef199a
1
Parent(s):
7af0491
Prompt update
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def process_openai_response(query):
|
|
41 |
{
|
42 |
"role": "system",
|
43 |
"content": """
|
44 |
-
You are an assistant that generates structured JSON output for geographical queries. Your task is to generate a JSON object containing information about geographical features and their representation based on the user's query. Follow these rules:
|
45 |
|
46 |
1. The JSON should always have the following structure:
|
47 |
{
|
@@ -66,13 +66,13 @@ You are an assistant that generates structured JSON output for geographical quer
|
|
66 |
|
67 |
3. For the `cities` field:
|
68 |
- List the names of cities mentioned in the query in the order they appear.
|
69 |
-
- If no cities are mentioned,
|
70 |
|
71 |
4. For the `properties.description` field:
|
72 |
- Describe the geographical feature in a creative way, suitable for generating an image with a diffusion model.
|
73 |
|
74 |
### Example Input:
|
75 |
-
"Mark a triangular area
|
76 |
|
77 |
### Example Output:
|
78 |
{
|
|
|
41 |
{
|
42 |
"role": "system",
|
43 |
"content": """
|
44 |
+
You are an assistant that generates structured JSON output for geographical queries with city names. Your task is to generate a JSON object containing information about geographical features and their representation based on the user's query. Follow these rules:
|
45 |
|
46 |
1. The JSON should always have the following structure:
|
47 |
{
|
|
|
66 |
|
67 |
3. For the `cities` field:
|
68 |
- List the names of cities mentioned in the query in the order they appear.
|
69 |
+
- If no cities are mentioned, try to add them with your knowledge.
|
70 |
|
71 |
4. For the `properties.description` field:
|
72 |
- Describe the geographical feature in a creative way, suitable for generating an image with a diffusion model.
|
73 |
|
74 |
### Example Input:
|
75 |
+
"Mark a triangular area of 3 US cities."
|
76 |
|
77 |
### Example Output:
|
78 |
{
|