We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6a40f5 + 11c9a6a commit bafb8b0Copy full SHA for bafb8b0
webui.go
@@ -3,12 +3,16 @@
3
* @Date: 2023-08-11 13:15:25
4
* @version:
5
* @LastEditors: SpenserCai
6
- * @LastEditTime: 2023-08-12 01:08:28
+ * @LastEditTime: 2023-08-26 12:35:45
7
* @Description: file content
8
*/
9
package webui
10
11
import (
12
+ "time"
13
+
14
+ rclient "github.com/go-openapi/runtime/client"
15
16
StableDiffClient "github.com/SpenserCai/sd-webui-go/stablediffusion/client"
17
18
"github.com/go-openapi/strfmt"
@@ -19,6 +23,7 @@ type StableDiffInterface struct {
19
23
}
20
24
21
25
func NewStableDiffInterface(host string) *StableDiffInterface {
26
+ rclient.DefaultTimeout = 120 * time.Second
22
27
var client *StableDiffClient.StableDiffusion
28
if host == "" {
29
client = StableDiffClient.NewHTTPClient(strfmt.Default)
0 commit comments