Aswini96 commited on
Commit
7f5e928
·
verified ·
1 Parent(s): d81cfc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -31,8 +31,7 @@ def ask_openai(prompt, secret_word):
31
  temperature=0.7,
32
  max_tokens=100,
33
  )
34
- print(response)
35
- return response.choices[0].message["content"]
36
  except Exception as e:
37
  return f"Error: {str(e)}"
38
 
 
31
  temperature=0.7,
32
  max_tokens=100,
33
  )
34
+ return response.choices[0].message.content
 
35
  except Exception as e:
36
  return f"Error: {str(e)}"
37