Spaces:
Runtime error
Runtime error
AJ-Gazin
commited on
Commit
·
f1ea9dc
1
Parent(s):
9d582af
fixed access
Browse files
app.py
CHANGED
|
@@ -2,8 +2,10 @@ import gradio as gr
|
|
| 2 |
from openai import OpenAI, APIConnectionError, BadRequestError
|
| 3 |
from gradio_client import Client
|
| 4 |
import os
|
|
|
|
| 5 |
|
| 6 |
# Define the client to interact with the original Gradio app for prompt customization
|
|
|
|
| 7 |
access_token = os.getenv('PRIVATE_ACCESS_KEY') # Replace with your actual access token
|
| 8 |
client = Client("neuronslabs/Text_modulator", hf_token=access_token)
|
| 9 |
|
|
|
|
| 2 |
from openai import OpenAI, APIConnectionError, BadRequestError
|
| 3 |
from gradio_client import Client
|
| 4 |
import os
|
| 5 |
+
from dotenv import load_dotenv
|
| 6 |
|
| 7 |
# Define the client to interact with the original Gradio app for prompt customization
|
| 8 |
+
load_dotenv()
|
| 9 |
access_token = os.getenv('PRIVATE_ACCESS_KEY') # Replace with your actual access token
|
| 10 |
client = Client("neuronslabs/Text_modulator", hf_token=access_token)
|
| 11 |
|