Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,10 @@ def chatbot_interaction(input_text):
|
|
9 |
print(input_text)
|
10 |
response = g4f.ChatCompletion.create(
|
11 |
model="gpt-3.5-turbo",
|
12 |
-
|
13 |
-
|
|
|
|
|
14 |
print(response)
|
15 |
return response
|
16 |
iface = gr.Interface(
|
|
|
9 |
print(input_text)
|
10 |
response = g4f.ChatCompletion.create(
|
11 |
model="gpt-3.5-turbo",
|
12 |
+
provider=g4f.Provider.Opchatgpts,
|
13 |
+
messages=[{"role": "user", "content": input_texxt}],
|
14 |
+
stream=False,
|
15 |
+
)
|
16 |
print(response)
|
17 |
return response
|
18 |
iface = gr.Interface(
|