Skip to content

Commit

Permalink
Merge pull request #54 from SpenserCai/dev
Browse files Browse the repository at this point in the history
change time out
  • Loading branch information
SpenserCai committed Aug 26, 2023
2 parents d6a40f5 + 11c9a6a commit bafb8b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webui.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
* @Date: 2023-08-11 13:15:25
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-08-12 01:08:28
* @LastEditTime: 2023-08-26 12:35:45
* @Description: file content
*/
package webui

import (
"time"

rclient "github.com/go-openapi/runtime/client"

StableDiffClient "github.com/SpenserCai/sd-webui-go/stablediffusion/client"

"github.com/go-openapi/strfmt"
Expand All @@ -19,6 +23,7 @@ type StableDiffInterface struct {
}

func NewStableDiffInterface(host string) *StableDiffInterface {
rclient.DefaultTimeout = 120 * time.Second
var client *StableDiffClient.StableDiffusion
if host == "" {
client = StableDiffClient.NewHTTPClient(strfmt.Default)
Expand Down

0 comments on commit bafb8b0

Please sign in to comment.