hermanda commited on
Commit
ea32a34
·
verified ·
1 Parent(s): 14349da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-4-mini", # Verify the correct model name
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(server_name="0.0.0.0", server_port=3000)
 
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()