Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,7 @@ def ask_openai(prompt, secret_word):
|
|
31 |
temperature=0.7,
|
32 |
max_tokens=100,
|
33 |
)
|
34 |
-
|
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 |
|