YC-Chen commited on
Commit
c000c90
1 Parent(s): 05eed08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -130,7 +130,7 @@ with gr.Blocks() as demo:
130
 
131
  outputs = requests.post(API_URL, headers=HEADERS, data=json.dumps(data)).json()['choices'][0]['text']
132
  if history[-1][1] is None:
133
- history[-1][1] = segment
134
  else:
135
  history[-1][1] += outputs
136
  return history
 
130
 
131
  outputs = requests.post(API_URL, headers=HEADERS, data=json.dumps(data)).json()['choices'][0]['text']
132
  if history[-1][1] is None:
133
+ history[-1][1] = outputs
134
  else:
135
  history[-1][1] += outputs
136
  return history