Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 []
|