Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
@@ -134,7 +134,9 @@ async function processImage2Img(imgBuffer, prompt) {
|
|
134 |
|
135 |
async function askOpenGPT4o(prompt) {
|
136 |
try {
|
137 |
-
|
|
|
|
|
138 |
const result = await client.predict("/chat", {
|
139 |
user_prompt: { text: prompt },
|
140 |
decoding_strategy: "Greedy",
|
|
|
134 |
|
135 |
async function askOpenGPT4o(prompt) {
|
136 |
try {
|
137 |
+
process.env.GRADIO_CLIENT_DEBUG = 'true';
|
138 |
+
|
139 |
+
const client = await Client.connect("KingNish/OpenGPT-4o");
|
140 |
const result = await client.predict("/chat", {
|
141 |
user_prompt: { text: prompt },
|
142 |
decoding_strategy: "Greedy",
|