Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def summarize_pdf(
|
|
| 44 |
with get_openai_callback() as callback:
|
| 45 |
try:
|
| 46 |
model = ChatOpenAI(
|
| 47 |
-
model="gpt-
|
| 48 |
temperature=0.0,
|
| 49 |
openai_api_key=api_key,
|
| 50 |
)
|
|
@@ -130,4 +130,4 @@ with gr.Blocks() as demo:
|
|
| 130 |
gr.Markdown("Created by [Daniel Herman](https://www.hermandaniel.com), check out the code [detrin/llm-pdf-summarization](https://github.com/detrin/llm-pdf-summarization).")
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
-
demo.launch(
|
|
|
|
| 44 |
with get_openai_callback() as callback:
|
| 45 |
try:
|
| 46 |
model = ChatOpenAI(
|
| 47 |
+
model="gpt-4o-mini", # Verify the correct model name
|
| 48 |
temperature=0.0,
|
| 49 |
openai_api_key=api_key,
|
| 50 |
)
|
|
|
|
| 130 |
gr.Markdown("Created by [Daniel Herman](https://www.hermandaniel.com), check out the code [detrin/llm-pdf-summarization](https://github.com/detrin/llm-pdf-summarization).")
|
| 131 |
|
| 132 |
if __name__ == "__main__":
|
| 133 |
+
demo.launch()
|