ArslanFOX commited on
Commit
f8bd70e
·
verified ·
1 Parent(s): dc908e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -87,7 +87,12 @@ prompt_templates = {
87
  "Ensure the answer is clear and in the same language as the query. "
88
  "Format the response using `final_answer()`."
89
  ),
90
- "template": "Final response: {{answer}}"
 
 
 
 
 
91
  }
92
  }
93
 
@@ -112,4 +117,4 @@ gr.Interface(
112
  outputs="text",
113
  title="Helpful Assistant",
114
  description="Hello! What city or town are you from? I can tell you the time, weather, air quality, and more!"
115
- ).launch()
 
87
  "Ensure the answer is clear and in the same language as the query. "
88
  "Format the response using `final_answer()`."
89
  ),
90
+ "template": "Final response: {{answer}}",
91
+ "post_messages": (
92
+ "Review the formatted response for the query: {{question}}. "
93
+ "Ensure the response is accurate and complete. "
94
+ "Return the final response via `final_answer()`."
95
+ )
96
  }
97
  }
98
 
 
117
  outputs="text",
118
  title="Helpful Assistant",
119
  description="Hello! What city or town are you from? I can tell you the time, weather, air quality, and more!"
120
+ ).launch()