Update app.py
Browse files
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] =
|
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
|