Docfile commited on
Commit
ba232a1
·
1 Parent(s): 9ad8a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -15,7 +15,7 @@ def chatbot_interaction(input_text):
15
  model="gpt-3.5-turbo",
16
  provider=g4f.Provider.Aichat,
17
  messages=[{"role": "user", "content": input_texxt}],
18
- stream=True,
19
  )
20
  print()
21
  print()
@@ -24,11 +24,13 @@ def chatbot_interaction(input_text):
24
  print()
25
  print()
26
  print()
 
27
  Q = ""
28
  for message in response:
29
  print(message, flush=True, end='')
30
  Q += message
31
- return Q
 
32
  iface = gr.Interface(
33
  fn=chatbot_interaction,
34
  inputs="text",
 
15
  model="gpt-3.5-turbo",
16
  provider=g4f.Provider.Aichat,
17
  messages=[{"role": "user", "content": input_texxt}],
18
+ stream=False,
19
  )
20
  print()
21
  print()
 
24
  print()
25
  print()
26
  print()
27
+ """
28
  Q = ""
29
  for message in response:
30
  print(message, flush=True, end='')
31
  Q += message
32
+ """
33
+ return response
34
  iface = gr.Interface(
35
  fn=chatbot_interaction,
36
  inputs="text",