NCTCMumbai commited on
Commit
fe35252
·
verified ·
1 Parent(s): 0a133f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -156,9 +156,11 @@ def bot(history, cross_encoder):
156
  # Create a new history entry instead of modifying the tuple directly
157
  new_history = history[:-1] + [ (query, "") ]
158
  output=''
159
- for character in generate_fn(prompt, history[:-1]):
160
- #new_history[-1] = (query, character)
161
- output+=character
 
 
162
  print('Output:',output)
163
  new_history[-1] = (query, output)
164
  #print('Character',character)# Update the last tuple with new text
 
156
  # Create a new history entry instead of modifying the tuple directly
157
  new_history = history[:-1] + [ (query, "") ]
158
  output=''
159
+ # for character in generate_fn(prompt, history[:-1]):
160
+ # #new_history[-1] = (query, character)
161
+ # output+=character
162
+ output=generate_fn(prompt, history[:-1])
163
+
164
  print('Output:',output)
165
  new_history[-1] = (query, output)
166
  #print('Character',character)# Update the last tuple with new text