This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # server.py | |
| import os | |
| import io | |
| import json | |
| from typing import List, Dict, Any | |
| from flask import Flask, request, jsonify, send_from_directory | |
| from flask_cors import CORS | |
| from openai import OpenAI | |
| from pypdf import PdfReader |