Docfile commited on
Commit
f2721d4
·
1 Parent(s): 1c67f07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  import g4f
3
- #bQg91CNGoHslYB1gzVDII8hhg2hNFBcL15Ylvk5ThfQL9vM6LN0L09W82gLkCWd_RCw6xw
4
- #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
5
- # supported args
6
 
7
  # Automatic selection of provider
8
 
@@ -17,14 +17,17 @@ def chatbot_interaction(input_text):
17
  messages=[{"role": "user", "content": input_texxt}],
18
  stream=True,
19
  )
 
 
 
 
 
 
 
20
  Q = ""
21
  for message in response:
22
  print(message, flush=True, end='')
23
  Q += message
24
- print()
25
- print()
26
- print()
27
- print("réponse:", Q)
28
  return Q
29
  iface = gr.Interface(
30
  fn=chatbot_interaction,
 
1
  import gradio as gr
2
  import g4f
3
+ #
4
+ #
5
+ # supporte args
6
 
7
  # Automatic selection of provider
8
 
 
17
  messages=[{"role": "user", "content": input_texxt}],
18
  stream=True,
19
  )
20
+ print()
21
+ print()
22
+ print()
23
+ print("réponse")
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,