M17idd commited on
Commit
53f0728
·
verified ·
1 Parent(s): 9858f42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()