AJ-Gazin commited on
Commit
e11daeb
·
1 Parent(s): f1ea9dc
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,9 +4,8 @@ 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
 
12
  SYSTEM_PROMPT = """You are an advanced multilingual text transformation AI. Your role is to transform the provided text based on specific tasks, ensuring the core meaning remains intact. Each transformation should be distinct, creative, and suitable for the intended audience. Generate exactly 3 distinct variations of the transformed text, separated by '---'. Pay attention to language nuances, style, and context to enhance clarity and engagement."""
 
4
  import os
5
  from dotenv import load_dotenv
6
 
 
7
  load_dotenv()
8
+ access_token = os.getenv('PRIVATE_ACCESS_KEY') #both in hidden env & hf secrets.
9
  client = Client("neuronslabs/Text_modulator", hf_token=access_token)
10
 
11
  SYSTEM_PROMPT = """You are an advanced multilingual text transformation AI. Your role is to transform the provided text based on specific tasks, ensuring the core meaning remains intact. Each transformation should be distinct, creative, and suitable for the intended audience. Generate exactly 3 distinct variations of the transformed text, separated by '---'. Pay attention to language nuances, style, and context to enhance clarity and engagement."""