Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ class Reviewer:
|
|
55 |
|
56 |
self.language = language
|
57 |
self.paper_pdf = paper_pdf
|
58 |
-
self.max_token_num =
|
59 |
self.encoding = tiktoken.get_encoding("gpt2")
|
60 |
|
61 |
|
@@ -84,8 +84,9 @@ class Reviewer:
|
|
84 |
]
|
85 |
try:
|
86 |
response = openai.ChatCompletion.create(
|
87 |
-
model="gpt-3.5-turbo",
|
88 |
messages=messages,
|
|
|
89 |
)
|
90 |
result = ''
|
91 |
for choice in response.choices:
|
|
|
55 |
|
56 |
self.language = language
|
57 |
self.paper_pdf = paper_pdf
|
58 |
+
self.max_token_num = 14097
|
59 |
self.encoding = tiktoken.get_encoding("gpt2")
|
60 |
|
61 |
|
|
|
84 |
]
|
85 |
try:
|
86 |
response = openai.ChatCompletion.create(
|
87 |
+
model="gpt-3.5-turbo-16k",
|
88 |
messages=messages,
|
89 |
+
temperature=0.7
|
90 |
)
|
91 |
result = ''
|
92 |
for choice in response.choices:
|