Khrisna commited on
Commit
c215cc3
·
verified ·
1 Parent(s): 10cb96e

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -1
index.js CHANGED
@@ -134,7 +134,9 @@ async function processImage2Img(imgBuffer, prompt) {
134
 
135
  async function askOpenGPT4o(prompt) {
136
  try {
137
- const client = await Client.connect("KingNish/OpenGPT-4o", { debug: true });
 
 
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",