Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,7 @@ import gradio as gr
|
|
| 10 |
|
| 11 |
user_defined_questions = ["What is the title or subject of the video? Please provide a brief description (1-2 sentences) to help me understand the content?",
|
| 12 |
"What type of video is this (e.g., documentary, informative, sarcastic, comedy, tutorial, review, etc.)?",
|
| 13 |
-
"Are there any specific keywords or tags you want to include for search optimization?
|
| 14 |
-
"What is the desired mood or atmosphere for the thumbnail (e.g., energetic, calm, inspirational, humorous)?",
|
| 15 |
-
"What style or tone do you want to convey (e.g., serious, playful, minimalist, detailed)?",
|
| 16 |
-
"Are there any specific text elements (e.g., titles, subtitles, quotes) you want to include in the thumbnail?",
|
| 17 |
-
"Who is the target audience for this video?"
|
| 18 |
-
]
|
| 19 |
|
| 20 |
def nextGen():
|
| 21 |
try:
|
|
@@ -68,12 +63,12 @@ with gr.Blocks() as demo:
|
|
| 68 |
c: gr.Label(value=summary, label="Customer Requirement", visible=True),
|
| 69 |
m: gr.Image(value=image ,visible=True)}
|
| 70 |
|
| 71 |
-
try:
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
except:
|
| 75 |
-
|
| 76 |
-
|
| 77 |
all_q = user_defined_questions + llm_q
|
| 78 |
q = (i for i in all_q[:3])
|
| 79 |
# q = (i for i in questions(data[a])[:3])
|
|
|
|
| 10 |
|
| 11 |
user_defined_questions = ["What is the title or subject of the video? Please provide a brief description (1-2 sentences) to help me understand the content?",
|
| 12 |
"What type of video is this (e.g., documentary, informative, sarcastic, comedy, tutorial, review, etc.)?",
|
| 13 |
+
"Are there any specific keywords or tags you want to include for search optimization?"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
def nextGen():
|
| 16 |
try:
|
|
|
|
| 63 |
c: gr.Label(value=summary, label="Customer Requirement", visible=True),
|
| 64 |
m: gr.Image(value=image ,visible=True)}
|
| 65 |
|
| 66 |
+
# try:
|
| 67 |
+
# llm_q = questions(data[a])
|
| 68 |
+
# llm_q = random.sample(llm_q, 3)
|
| 69 |
+
# except:
|
| 70 |
+
# llm_q = []
|
| 71 |
+
llm_q = []
|
| 72 |
all_q = user_defined_questions + llm_q
|
| 73 |
q = (i for i in all_q[:3])
|
| 74 |
# q = (i for i in questions(data[a])[:3])
|