StarFox7 commited on
Commit
70f1aa8
·
1 Parent(s): 5627716

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.replace('▁',' ')
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 = """