Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
|
|
8 |
openai.api_key = os.getenv('OPENAI_API_KEY') # Set environment variable on Hugging Face
|
9 |
|
10 |
# Define the Google Drive folder path where PDF files are stored
|
11 |
-
drive_folder_path = '/
|
12 |
|
13 |
def extract_text_from_pdf(pdf_path, max_chars=3000):
|
14 |
text = ""
|
|
|
8 |
openai.api_key = os.getenv('OPENAI_API_KEY') # Set environment variable on Hugging Face
|
9 |
|
10 |
# Define the Google Drive folder path where PDF files are stored
|
11 |
+
drive_folder_path = 'Resin/'
|
12 |
|
13 |
def extract_text_from_pdf(pdf_path, max_chars=3000):
|
14 |
text = ""
|