yejunliang23 commited on
Commit
2de1404
·
unverified ·
1 Parent(s): 23a049d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import trimesh
8
  from trimesh.exchange.gltf import export_glb
9
  import numpy as np
10
  import tempfile
11
-
12
  def predict(_chatbot, task_history):
13
  chat_query = _chatbot[-1][0]
14
  query = task_history[-1][0]
@@ -105,7 +105,7 @@ def _parse_text(text):
105
  lines[i] = "<br>" + line
106
  text = "".join(lines)
107
  return text
108
-
109
  def add_text(history, task_history, text):
110
  task_text = text
111
  history = history if history is not None else []
 
8
  from trimesh.exchange.gltf import export_glb
9
  import numpy as np
10
  import tempfile
11
+ import copy
12
  def predict(_chatbot, task_history):
13
  chat_query = _chatbot[-1][0]
14
  query = task_history[-1][0]
 
105
  lines[i] = "<br>" + line
106
  text = "".join(lines)
107
  return text
108
+
109
  def add_text(history, task_history, text):
110
  task_text = text
111
  history = history if history is not None else []