Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -147,7 +147,7 @@ def bot(history):
|
|
147 |
# logger.debug(f"{elm}")
|
148 |
|
149 |
response.append(elm)
|
150 |
-
history[-1][1] = prefix + "".join(response)
|
151 |
yield history
|
152 |
|
153 |
_ = (
|
@@ -188,7 +188,7 @@ def predict_api(prompt):
|
|
188 |
# bot = {"inputs": [response]}
|
189 |
# bot = [(prompt, response)]
|
190 |
|
191 |
-
return response
|
192 |
|
193 |
|
194 |
css = """
|
|
|
147 |
# logger.debug(f"{elm}")
|
148 |
|
149 |
response.append(elm)
|
150 |
+
history[-1][1] = prefix + "".join(response).replace("▁"," ")
|
151 |
yield history
|
152 |
|
153 |
_ = (
|
|
|
188 |
# bot = {"inputs": [response]}
|
189 |
# bot = [(prompt, response)]
|
190 |
|
191 |
+
return response
|
192 |
|
193 |
|
194 |
css = """
|