soroushheidary commited on
Commit
9ea48b0
1 Parent(s): b6ac7d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ system_message = "A model that takes sentence in English which may contain gramm
10
  model_name = 'ft:gpt-3.5-turbo-1106:infercia::8n84ogUY'
11
 
12
  def check_grammar(text):
13
- response = {{'choices': [{'message': {'content': 'Error Communicating'}}]}}
14
  try:
15
  response = openai.ChatCompletion.create(
16
  model=model_name,
 
10
  model_name = 'ft:gpt-3.5-turbo-1106:infercia::8n84ogUY'
11
 
12
  def check_grammar(text):
13
+ response = 'Error Communicating'
14
  try:
15
  response = openai.ChatCompletion.create(
16
  model=model_name,