Spaces:
Runtime error
Runtime error
Commit
·
772df45
1
Parent(s):
3326738
Update app.py
Browse files
app.py
CHANGED
@@ -99,9 +99,9 @@ def summarize_bill():
|
|
99 |
# Replace with appropriate summarization logic if needed
|
100 |
summary = g4f.ChatCompletion.create(
|
101 |
model="gpt-3.5-turbo",
|
102 |
-
messages=[{"role": "user", "content": extracted_text}],
|
103 |
temperature=0.5, # You can adjust parameters as needed
|
104 |
-
max_tokens=
|
105 |
)
|
106 |
st.text_area("Summary", summary, height=400)
|
107 |
|
|
|
99 |
# Replace with appropriate summarization logic if needed
|
100 |
summary = g4f.ChatCompletion.create(
|
101 |
model="gpt-3.5-turbo",
|
102 |
+
messages=[{"role": "user", "content": "Please Summarize this bill: \n" +extracted_text}],
|
103 |
temperature=0.5, # You can adjust parameters as needed
|
104 |
+
max_tokens=512 # Adjust the token limit as needed
|
105 |
)
|
106 |
st.text_area("Summary", summary, height=400)
|
107 |
|