Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def chatbot_interaction(input_text):
|
|
13 |
print("Question:", input_text)
|
14 |
response = g4f.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo",
|
16 |
-
provider=g4f.Provider.
|
17 |
messages=[{"role": "user", "content": input_texxt}],
|
18 |
stream=True,
|
19 |
)
|
@@ -30,7 +30,7 @@ def chatbot_interaction(input_text):
|
|
30 |
print(message, flush=True, end='')
|
31 |
Q += message
|
32 |
print(Q)
|
33 |
-
return
|
34 |
iface = gr.Interface(
|
35 |
fn=chatbot_interaction,
|
36 |
inputs="text",
|
|
|
13 |
print("Question:", input_text)
|
14 |
response = g4f.ChatCompletion.create(
|
15 |
model="gpt-3.5-turbo",
|
16 |
+
provider=g4f.Provider.Aivvm,
|
17 |
messages=[{"role": "user", "content": input_texxt}],
|
18 |
stream=True,
|
19 |
)
|
|
|
30 |
print(message, flush=True, end='')
|
31 |
Q += message
|
32 |
print(Q)
|
33 |
+
return Q
|
34 |
iface = gr.Interface(
|
35 |
fn=chatbot_interaction,
|
36 |
inputs="text",
|