ouhenio commited on
Commit
8324cfa
verified
1 Parent(s): c68b38a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -83,6 +83,8 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
83
  history[-1] = partial_words
84
  token_counter += 1
85
  yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=False), gr.update(interactive=False)
 
 
86
 
87
  except Exception as e:
88
  print(f'OpenAI API error: {e}')
 
83
  history[-1] = partial_words
84
  token_counter += 1
85
  yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=False), gr.update(interactive=False)
86
+
87
+ yield [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2)], history, chat_counter, "200", gr.update(interactive=True), gr.update(interactive=True)
88
 
89
  except Exception as e:
90
  print(f'OpenAI API error: {e}')