Spaces:
Sleeping
Sleeping
soroushheidary
commited on
Commit
•
4fdddcb
1
Parent(s):
418a94e
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ openai.api_key = api_key
|
|
8 |
openai.organization = organization #os.getenv("ORG")
|
9 |
system_message = "A model that takes sentence in English which may contain grammatical errors, and responds with 1-the corrected version of the English sentence in the first line and then, 2-for each error -> correction, a concise explanation in Persian language. if there are no errors you respond with 'No Errors'"
|
10 |
model_name = 'ft:gpt-3.5-turbo-1106:infercia::8n84ogUY'
|
11 |
-
|
12 |
def check_grammar(text):
|
13 |
response = 'Error Communicating'
|
14 |
try:
|
|
|
8 |
openai.organization = organization #os.getenv("ORG")
|
9 |
system_message = "A model that takes sentence in English which may contain grammatical errors, and responds with 1-the corrected version of the English sentence in the first line and then, 2-for each error -> correction, a concise explanation in Persian language. if there are no errors you respond with 'No Errors'"
|
10 |
model_name = 'ft:gpt-3.5-turbo-1106:infercia::8n84ogUY'
|
11 |
+
print(api_key)
|
12 |
def check_grammar(text):
|
13 |
response = 'Error Communicating'
|
14 |
try:
|