eaglelandsonce commited on
Commit
e90b651
1 Parent(s): cf2a9e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -55
app.py CHANGED
@@ -15,7 +15,7 @@ GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
15
 
16
  TITLE1 = """<h1 align="center">Company Analysis</h1>"""
17
  TITLE2 = """<h1 align="center">Investment Strategy</h1>"""
18
- TITLE3 = """<h1 align="center">Profit Prohet</h1>"""
19
 
20
  SUBTITLE = """<h2 align="center">Movie Editing Agent built with Gemini Pro and Gemini Pro Vision API</h2>"""
21
  GETKEY = """
@@ -26,28 +26,6 @@ GETKEY = """
26
  </div>
27
  """
28
 
29
- movie_script = """
30
- Orion, in his futuristic apartment, discovers a cryptic message about an ancient artifact.
31
- Compelled by curiosity, he embarks on a quest, joined by his skilled friend, Luna.
32
- They navigate through uncharted territories and ancient ruins, solving puzzles and overcoming traps.
33
- Together, they uncover a hidden chamber and retrieve the powerful artifact,
34
- but not without triggering an alarm. In a tense escape, Luna is injured, and Orion uses the artifact to save her.
35
- They return to the city, changed by their journey, with Orion resolved to use the artifact for the greater good,
36
- as they stand looking towards a new future.
37
- """
38
-
39
- movie_script_analysis = """
40
- analyze the image and determine the best 7 images to use for the movie script below provide the frame order number:
41
- Orion, in his futuristic apartment, discovers a cryptic message about an ancient artifact.
42
- Compelled by curiosity, he embarks on a quest, joined by his skilled friend, Luna.
43
- They navigate through uncharted territories and ancient ruins, solving puzzles and overcoming traps.
44
- Together, they uncover a hidden chamber and retrieve the powerful artifact,
45
- but not without triggering an alarm. In a tense escape, Luna is injured, and Orion uses the artifact to save her.
46
- They return to the city, changed by their journey, with Orion resolved to use the artifact for the greater good,
47
- as they stand looking towards a new future.
48
- """
49
-
50
-
51
 
52
  AVATAR_IMAGES = (
53
  None,
@@ -55,38 +33,6 @@ AVATAR_IMAGES = (
55
  )
56
 
57
 
58
- script_bias_truera = """
59
- Does this script show bias or unfairness, please eloborate:
60
-
61
- Orion, in his futuristic apartment, discovers a cryptic message about an ancient artifact.
62
- Compelled by curiosity, he embarks on a quest, joined by his skilled friend, Luna.
63
- They navigate through uncharted territories and ancient ruins, solving puzzles and overcoming traps.
64
- Together, they uncover a hidden chamber and retrieve the powerful artifact,
65
- but not without triggering an alarm. In a tense escape, Luna is injured, and Orion uses the artifact to save her.
66
- They return to the city, changed by their journey, with Orion resolved to use the artifact for the greater good,
67
- as they stand looking towards a new future.
68
-
69
- TruEra GPT Response:
70
-
71
- The script you've provided for Orion's story appears to be a narrative centered around adventure and discovery, focusing on two main characters, Orion and Luna. From the information given, there isn't a clear indication of bias or unfairness inherent in the script itself. However, when analyzing a narrative for bias and fairness, there are several key aspects to consider:
72
-
73
- Character Representation: Both characters, Orion and Luna, seem to have active roles in the story. It's important to ensure that both characters are portrayed with depth and agency, avoiding stereotypes or unfair characterizations based on gender, race, or other attributes.
74
-
75
- Role Distribution: It appears that both characters have significant roles in the narrative. Orion discovers the message and resolves to use the artifact for good, while Luna is described as skilled and plays a crucial role in the adventure. Ensuring balanced and significant roles for all main characters is vital for fairness.
76
-
77
- Diverse Perspectives: If the story is limited to a single perspective, it may unintentionally present a biased view. Including diverse viewpoints can add depth and fairness to the narrative.
78
-
79
- Conflict and Resolution: How conflicts are resolved and by whom can also be a source of bias. In this script, Orion uses the artifact to save Luna, which is a positive portrayal of problem-solving and teamwork.
80
-
81
- Cultural Sensitivity: If the story involves elements from specific cultures, particularly in the context of "uncharted territories and ancient ruins," it's essential to handle these elements respectfully and accurately to avoid cultural appropriation or misrepresentation.
82
-
83
- Gender Dynamics: The script should be examined for any gender dynamics that might suggest bias. For instance, ensuring that both Orion and Luna have equal opportunity to display their skills and make significant contributions to the plot.
84
-
85
- Outcome for Characters: The resolution of the story should offer a balanced outcome for all characters, avoiding tropes that might undermine the contribution or significance of any character based on their identity.
86
-
87
- In summary, based on the provided summary alone, the script doesn't explicitly show bias or unfairness. However, a deeper analysis, especially considering the points above, would be required to fully assess the narrative's fairness and representation.
88
-
89
- """
90
 
91
 
92
  IMAGE_CACHE_DIRECTORY = "/tmp"
 
15
 
16
  TITLE1 = """<h1 align="center">Company Analysis</h1>"""
17
  TITLE2 = """<h1 align="center">Investment Strategy</h1>"""
18
+ TITLE3 = """<h1 align="center">Profit Prophet</h1>"""
19
 
20
  SUBTITLE = """<h2 align="center">Movie Editing Agent built with Gemini Pro and Gemini Pro Vision API</h2>"""
21
  GETKEY = """
 
26
  </div>
27
  """
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  AVATAR_IMAGES = (
31
  None,
 
33
  )
34
 
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
 
38
  IMAGE_CACHE_DIRECTORY = "/tmp"