Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,6 @@ def get_itinerary(information, maxtokens=1000, temperature=0.9, top_probability=
|
|
47 |
temperature=temperature
|
48 |
)
|
49 |
output = output['choices'][0]['message']['content']
|
50 |
-
find_index = output.find(' '.join(pdftext.split()[:3]))
|
51 |
-
if find_index != -1:
|
52 |
-
output = output[find_index:].strip()
|
53 |
return output
|
54 |
|
55 |
|
|
|
47 |
temperature=temperature
|
48 |
)
|
49 |
output = output['choices'][0]['message']['content']
|
|
|
|
|
|
|
50 |
return output
|
51 |
|
52 |
|