NCTCMumbai commited on
Commit
8146b4b
·
verified ·
1 Parent(s): e6a0952

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -110,7 +110,8 @@ def bot(history, api_kind):
110
  history[-1][1] = ""
111
  for character in generate_fn(prompt, history[:-1]):
112
  history[-1][1] = character
113
- yield history, prompt_html
 
114
  except Exception as e: # Catch any exception
115
  print('An unexpected error occurred during generation:', str(e))
116
  yield f"An unexpected error occurred during generation: {str(e)}"
 
110
  history[-1][1] = ""
111
  for character in generate_fn(prompt, history[:-1]):
112
  history[-1][1] = character
113
+ return history, prompt_html
114
+ # yield history, prompt_html
115
  except Exception as e: # Catch any exception
116
  print('An unexpected error occurred during generation:', str(e))
117
  yield f"An unexpected error occurred during generation: {str(e)}"