Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,22 @@
|
|
1 |
import gradio as gr
|
2 |
import g4f
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
def chatbot_interaction(input_text):
|
5 |
|
6 |
-
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=
|
7 |
{"role": "user", "content": input_text }], stream=False)
|
8 |
|
9 |
print(response)
|
|
|
1 |
import gradio as gr
|
2 |
import g4f
|
3 |
+
from g4f.Provider import (
|
4 |
+
Ails,
|
5 |
+
You,
|
6 |
+
Bing,
|
7 |
+
Yqcloud,
|
8 |
+
Theb,
|
9 |
+
Aichat,
|
10 |
+
Lockchat,
|
11 |
+
Liaobots,
|
12 |
+
H2o,
|
13 |
+
ChatgptLogin,
|
14 |
+
DeepAi,
|
15 |
+
GetGpt
|
16 |
+
)
|
17 |
def chatbot_interaction(input_text):
|
18 |
|
19 |
+
response = g4f.ChatCompletion.create(model='gpt-3.5-turbo', provider=Aichat , messages=[
|
20 |
{"role": "user", "content": input_text }], stream=False)
|
21 |
|
22 |
print(response)
|