Update app.py
Browse files
app.py
CHANGED
@@ -48,10 +48,10 @@ def process_text(text_input, unit):
|
|
48 |
job = client.submit(
|
49 |
query=str(text_input),
|
50 |
history=None,
|
51 |
-
|
52 |
api_name="/model_chat"
|
53 |
)
|
54 |
-
response = job.result(timeout=
|
55 |
print(response)
|
56 |
return response[1][0][0]
|
57 |
|
@@ -68,7 +68,7 @@ def process_image(image_input, unit):
|
|
68 |
res3 = client.predict(
|
69 |
fn_index = 3
|
70 |
)
|
71 |
-
print(
|
72 |
|
73 |
res5 = client.predict(
|
74 |
"",
|
|
|
48 |
job = client.submit(
|
49 |
query=str(text_input),
|
50 |
history=None,
|
51 |
+
system=f"You are a experienced {unit} doctor AI assistant." + SYS_PROMPT,
|
52 |
api_name="/model_chat"
|
53 |
)
|
54 |
+
response = job.result(timeout=300)
|
55 |
print(response)
|
56 |
return response[1][0][0]
|
57 |
|
|
|
68 |
res3 = client.predict(
|
69 |
fn_index = 3
|
70 |
)
|
71 |
+
print(res3)
|
72 |
|
73 |
res5 = client.predict(
|
74 |
"",
|