Upload app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,11 @@ import openai
|
|
8 |
import streamlit as st
|
9 |
import gradio as gr
|
10 |
from gradio.components import Textbox, Slider
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
|
14 |
# write some python constants for file name, paragraph length, overlapping length:
|
15 |
file_path = "data/Hair-Relaxer-Master-Complaint-1.pdf"
|
|
|
8 |
import streamlit as st
|
9 |
import gradio as gr
|
10 |
from gradio.components import Textbox, Slider
|
11 |
+
import os
|
12 |
|
13 |
+
# take as env variable called OPENAI_API_KEY
|
14 |
+
openai.api_key = os.getenv("OPENAI")
|
15 |
+
print("openai.api_key", openai.api_key)
|
16 |
|
17 |
# write some python constants for file name, paragraph length, overlapping length:
|
18 |
file_path = "data/Hair-Relaxer-Master-Complaint-1.pdf"
|