Spaces:
Sleeping
Sleeping
Deepak Sahu
commited on
Commit
·
f1fa604
1
Parent(s):
f0c8373
few shorts upgrade
Browse files- z_generate.py +24 -1
z_generate.py
CHANGED
@@ -87,10 +87,33 @@ Respond only to the question asked. Provide only number(s) of the source images
|
|
87 |
|
88 |
If the image is relevant to the question then output format should be a list [1, 3, 0]
|
89 |
|
90 |
-
otherwise reply
|
91 |
|
92 |
},
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
{
|
95 |
"role": "user",
|
96 |
"content": """Context:
|
|
|
87 |
|
88 |
If the image is relevant to the question then output format should be a list [1, 3, 0]
|
89 |
|
90 |
+
otherwise just reply empty list that is []""",
|
91 |
|
92 |
},
|
93 |
|
94 |
+
{
|
95 |
+
"role": "user",
|
96 |
+
"content": """Context:
|
97 |
+
Extracted Images:
|
98 |
+
|
99 |
+
Document 0:::
|
100 |
+
Rahuls playing football
|
101 |
+
|
102 |
+
Document 1:::
|
103 |
+
Rahul recieving award in Archery.
|
104 |
+
|
105 |
+
---
|
106 |
+
|
107 |
+
Now here is the question you need to answer.
|
108 |
+
|
109 |
+
Question: Who is Rahul"""
|
110 |
+
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"role": "assistant",
|
114 |
+
"content": "[1, ]"
|
115 |
+
},
|
116 |
+
|
117 |
{
|
118 |
"role": "user",
|
119 |
"content": """Context:
|