mohammed3536 commited on
Commit
1370400
1 Parent(s): 4a8ac98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -42,6 +42,8 @@ def generate_question_with_chatgpt(context):
42
 
43
  data = {
44
  "model": "gpt-3.5-turbo",
 
 
45
  "messages": [
46
  {"role": "system", "content": "You are a helpful assistant."},
47
  {"role": "user", "content": f"What is the question for the following? {context}"},
 
42
 
43
  data = {
44
  "model": "gpt-3.5-turbo",
45
+ "temperature": 0.7,
46
+ "max_tokens": 1024,
47
  "messages": [
48
  {"role": "system", "content": "You are a helpful assistant."},
49
  {"role": "user", "content": f"What is the question for the following? {context}"},