Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ model = ChatOpenAI(model="gpt-4o-mini")
|
|
13 |
def chatbot_autocorrect_response(input_text: str):
|
14 |
# Step 1: Define the prompt asking the model to correct the sentence
|
15 |
prompt = (
|
16 |
-
f"The user said: '{input_text}'. Please correct this sentence if necessary, and make it sounds friendly, casual tone, acknowledging the correction and make it sounds like american native conversation. If appropriate, make it sounds like an IELTS 9.0 level response. Please only respond with the corrected sentence. If nothing needs to be changed, repeat the sentence."
|
17 |
)
|
18 |
|
19 |
# Step 2: Send the prompt to the model
|
|
|
13 |
def chatbot_autocorrect_response(input_text: str):
|
14 |
# Step 1: Define the prompt asking the model to correct the sentence
|
15 |
prompt = (
|
16 |
+
f"The user said: '{input_text}'. Please correct this sentence if necessary, and make it sounds friendly, casual tone, acknowledging the correction and make it sounds like american native conversation. If appropriate, make it sounds like an IELTS 9.0 level response. If sentences are in Indonesian translate it and make it sounds like native american conversational. Please only respond with the corrected sentence. If nothing needs to be changed, repeat the sentence."
|
17 |
)
|
18 |
|
19 |
# Step 2: Send the prompt to the model
|