Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def generate_report(operation_data, max_tokens, temperature, top_p):
|
|
16 |
for message in client.chat_completion(
|
17 |
messages,
|
18 |
max_tokens=max_tokens,
|
19 |
-
|
20 |
temperature=temperature,
|
21 |
top_p=top_p,
|
22 |
):
|
@@ -38,4 +38,4 @@ demo = gr.Interface(
|
|
38 |
)
|
39 |
|
40 |
if __name__ == "__main__":
|
41 |
-
demo.launch()
|
|
|
16 |
for message in client.chat_completion(
|
17 |
messages,
|
18 |
max_tokens=max_tokens,
|
19 |
+
stream=True,
|
20 |
temperature=temperature,
|
21 |
top_p=top_p,
|
22 |
):
|
|
|
38 |
)
|
39 |
|
40 |
if __name__ == "__main__":
|
41 |
+
demo.launch()
|