Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ def process(pdf):
|
|
175 |
|
176 |
start = time.perf_counter()
|
177 |
try:
|
178 |
-
response = client.
|
179 |
reply = response['choices'][0]['message']['content']
|
180 |
except Exception as e:
|
181 |
print(f"Error during API call: {e}")
|
|
|
175 |
|
176 |
start = time.perf_counter()
|
177 |
try:
|
178 |
+
response = client.chat.completions.create(**params)
|
179 |
reply = response['choices'][0]['message']['content']
|
180 |
except Exception as e:
|
181 |
print(f"Error during API call: {e}")
|