orrinin commited on
Commit
83787a7
·
verified ·
1 Parent(s): 1402965

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #system=f"You are a experienced {unit} doctor AI assistant." + SYS_PROMPT,
52
  api_name="/model_chat"
53
  )
54
- response = job.result(timeout=60)
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(res1)
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
  "",