Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import gradio as gr
|
|
2 |
from pypdf import PdfReader
|
3 |
from openai import OpenAI
|
4 |
|
5 |
-
api_key = API_KEY
|
6 |
base_url = "https://api.aimlapi.com/v1"
|
7 |
-
api = OpenAI(api_key=
|
8 |
|
9 |
# Function to extract text from a PDF file
|
10 |
def extract_text_from_pdf(pdf_path):
|
|
|
2 |
from pypdf import PdfReader
|
3 |
from openai import OpenAI
|
4 |
|
5 |
+
# api_key = API_KEY
|
6 |
base_url = "https://api.aimlapi.com/v1"
|
7 |
+
api = OpenAI(api_key=API_KEY, base_url=base_url)
|
8 |
|
9 |
# Function to extract text from a PDF file
|
10 |
def extract_text_from_pdf(pdf_path):
|