Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def generate_response(user_query, relevant_segment):
|
|
| 75 |
response = openai.ChatCompletion.create(
|
| 76 |
model="gpt-3.5-turbo",
|
| 77 |
messages=messages,
|
| 78 |
-
max_tokens=
|
| 79 |
temperature=0.2,
|
| 80 |
top_p=1,
|
| 81 |
frequency_penalty=0,
|
|
@@ -106,6 +106,7 @@ def query_model(question):
|
|
| 106 |
response = generate_response(question, relevant_segment)
|
| 107 |
return response
|
| 108 |
|
|
|
|
| 109 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 110 |
welcome_message = """
|
| 111 |
# ♻️ Welcome to GreenGuide!
|
|
|
|
| 75 |
response = openai.ChatCompletion.create(
|
| 76 |
model="gpt-3.5-turbo",
|
| 77 |
messages=messages,
|
| 78 |
+
max_tokens=300,
|
| 79 |
temperature=0.2,
|
| 80 |
top_p=1,
|
| 81 |
frequency_penalty=0,
|
|
|
|
| 106 |
response = generate_response(question, relevant_segment)
|
| 107 |
return response
|
| 108 |
|
| 109 |
+
|
| 110 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 111 |
welcome_message = """
|
| 112 |
# ♻️ Welcome to GreenGuide!
|