Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -183,11 +183,12 @@ data = np.ndarray(shape=(1, 224, 224, 3), dtype=np.float32)
|
|
183 |
with open("labels.txt", "r") as file:
|
184 |
labels = file.read().splitlines()
|
185 |
|
|
|
|
|
|
|
|
|
186 |
def classify(UserInput, Image, Textbox2, Textbox3):
|
187 |
if Textbox3 == code:
|
188 |
-
messages = [
|
189 |
-
{"role": "system", "content": system}
|
190 |
-
]
|
191 |
if Image is not None:
|
192 |
output = []
|
193 |
image_data = np.array(Image)
|
|
|
183 |
with open("labels.txt", "r") as file:
|
184 |
labels = file.read().splitlines()
|
185 |
|
186 |
+
messages = [
|
187 |
+
{"role": "system", "content": system}
|
188 |
+
]
|
189 |
+
|
190 |
def classify(UserInput, Image, Textbox2, Textbox3):
|
191 |
if Textbox3 == code:
|
|
|
|
|
|
|
192 |
if Image is not None:
|
193 |
output = []
|
194 |
image_data = np.array(Image)
|