Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,11 +98,10 @@ with gr.Blocks() as demo:
|
|
| 98 |
# Define the action when the demo is loaded
|
| 99 |
demo.load(load_data, None, [data, count])
|
| 100 |
|
| 101 |
-
|
| 102 |
-
TOKEN = userdata.get('token')
|
| 103 |
|
| 104 |
# Retrieve the Hugging Face Hub token from environment variables
|
| 105 |
-
TOKEN =
|
| 106 |
|
| 107 |
# Create a Repository object for interacting with a Hugging Face dataset
|
| 108 |
repo = huggingface_hub.Repository(
|
|
|
|
| 98 |
# Define the action when the demo is loaded
|
| 99 |
demo.load(load_data, None, [data, count])
|
| 100 |
|
| 101 |
+
|
|
|
|
| 102 |
|
| 103 |
# Retrieve the Hugging Face Hub token from environment variables
|
| 104 |
+
TOKEN = os.environ.get(openai_api_key )
|
| 105 |
|
| 106 |
# Create a Repository object for interacting with a Hugging Face dataset
|
| 107 |
repo = huggingface_hub.Repository(
|