Update app.py
Browse files
app.py
CHANGED
@@ -67,13 +67,13 @@ def process_image(image_input, unit):
|
|
67 |
# base64_image = encode_image_to_base64(image_input)
|
68 |
prompt = f" You are a experienced {unit} doctor AI assistant." + SYS_PROMPT + "Help me understand what is in this picture and analysis."
|
69 |
client.predict(
|
70 |
-
"null"
|
71 |
image_input,
|
72 |
fn_index=5
|
73 |
)
|
74 |
response = client.predict(
|
75 |
-
"null"
|
76 |
-
prompt,
|
77 |
fn_index=0
|
78 |
)
|
79 |
print(response)
|
|
|
67 |
# base64_image = encode_image_to_base64(image_input)
|
68 |
prompt = f" You are a experienced {unit} doctor AI assistant." + SYS_PROMPT + "Help me understand what is in this picture and analysis."
|
69 |
client.predict(
|
70 |
+
"null",
|
71 |
image_input,
|
72 |
fn_index=5
|
73 |
)
|
74 |
response = client.predict(
|
75 |
+
"null",
|
76 |
+
prompt,
|
77 |
fn_index=0
|
78 |
)
|
79 |
print(response)
|