Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ Example responses:
|
|
| 63 |
"""
|
| 64 |
|
| 65 |
try:
|
| 66 |
-
response = self.client.
|
| 67 |
decision_prompt,
|
| 68 |
max_new_tokens=50,
|
| 69 |
temperature=0.1,
|
|
@@ -95,7 +95,7 @@ Question: {question}
|
|
| 95 |
Answer:"""
|
| 96 |
|
| 97 |
try:
|
| 98 |
-
response = self.client.
|
| 99 |
answer_prompt,
|
| 100 |
max_new_tokens=500,
|
| 101 |
temperature=0.3,
|
|
@@ -161,9 +161,9 @@ Based on the search results above, provide an answer to the question. If the sea
|
|
| 161 |
Answer:"""
|
| 162 |
|
| 163 |
try:
|
| 164 |
-
response = self.client.
|
| 165 |
answer_prompt,
|
| 166 |
-
max_new_tokens=
|
| 167 |
temperature=0.3,
|
| 168 |
do_sample=True
|
| 169 |
)
|
|
|
|
| 63 |
"""
|
| 64 |
|
| 65 |
try:
|
| 66 |
+
response = self.client.text_generation(
|
| 67 |
decision_prompt,
|
| 68 |
max_new_tokens=50,
|
| 69 |
temperature=0.1,
|
|
|
|
| 95 |
Answer:"""
|
| 96 |
|
| 97 |
try:
|
| 98 |
+
response = self.client.text_generation(
|
| 99 |
answer_prompt,
|
| 100 |
max_new_tokens=500,
|
| 101 |
temperature=0.3,
|
|
|
|
| 161 |
Answer:"""
|
| 162 |
|
| 163 |
try:
|
| 164 |
+
response = self.client.text_generation(
|
| 165 |
answer_prompt,
|
| 166 |
+
max_new_tokens=60,
|
| 167 |
temperature=0.3,
|
| 168 |
do_sample=True
|
| 169 |
)
|