rairo commited on
Commit
ab929c6
·
verified ·
1 Parent(s): 3a7575a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -283,8 +283,7 @@ def generate_story_endpoint():
283
 
284
  # Convert PDF to text
285
  pdf_text = get_pdf_text(uploaded_file)
286
- prompt = pdf_text
287
- full_story = generate_story_from_text(prompt, story_type)
288
 
289
  elif input_type == "dataframe":
290
  # Expecting a file in request.files["file"] and an "ext" field (csv, xlsx, xls)
 
283
 
284
  # Convert PDF to text
285
  pdf_text = get_pdf_text(uploaded_file)
286
+ full_story = generate_story_from_text(pdf_text, story_type)
 
287
 
288
  elif input_type == "dataframe":
289
  # Expecting a file in request.files["file"] and an "ext" field (csv, xlsx, xls)