Spaces:
Sleeping
Sleeping
Commit ·
2322db4
1
Parent(s): 1398f54
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,16 @@ import gradio as gr
|
|
| 2 |
import openai
|
| 3 |
import re
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Define your main function which will be linked to the Gradio interface
|
| 6 |
def generate_script(user_slo):
|
| 7 |
content_creation_prompt = """
|
|
|
|
| 2 |
import openai
|
| 3 |
import re
|
| 4 |
|
| 5 |
+
|
| 6 |
+
aws_access_key_id = os.getenv('AWS_ACCESS_KEY_ID')
|
| 7 |
+
aws_secret_access_key = os.getenv('AWS_SECRET_ACCESS_KEY')
|
| 8 |
+
aws_default_region = os.getenv('AWS_DEFAULT_REGION')
|
| 9 |
+
aws_session_token = os.getenv('AWS_SESSION_TOKEN')
|
| 10 |
+
creatomate_api_key = os.getenv('CREATOMATE_API_KEY')
|
| 11 |
+
bucket_name = 'ai-textract-bucket'
|
| 12 |
+
folder_name = 'voiceovers'
|
| 13 |
+
|
| 14 |
+
|
| 15 |
# Define your main function which will be linked to the Gradio interface
|
| 16 |
def generate_script(user_slo):
|
| 17 |
content_creation_prompt = """
|