Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import openai
|
|
| 2 |
import gradio as gr
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
def chunk_HTMLs(text, delimiter="HTML (ID:"):
|
| 8 |
""" This function splits the text into chunks based on a delimiter, removes trailing newlines from each chunk,
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
openai.api_key = os.environ["OpenAPI_Key"]
|
| 6 |
|
| 7 |
def chunk_HTMLs(text, delimiter="HTML (ID:"):
|
| 8 |
""" This function splits the text into chunks based on a delimiter, removes trailing newlines from each chunk,
|