Spaces:
Paused
Paused
Update api/main.go
Browse files- api/main.go +8 -0
api/main.go
CHANGED
|
@@ -327,4 +327,12 @@ func handleStreamingResponse(w http.ResponseWriter, youReq *http.Request) {
|
|
| 327 |
w.(http.Flusher).Flush()
|
| 328 |
}
|
| 329 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
}
|
|
|
|
| 327 |
w.(http.Flusher).Flush()
|
| 328 |
}
|
| 329 |
}
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
func main() {
|
| 333 |
+
http.HandleFunc("/", Handler)
|
| 334 |
+
fmt.Println("Server starting on :7860...")
|
| 335 |
+
if err := http.ListenAndServe(":7860", nil); err != nil {
|
| 336 |
+
fmt.Printf("Error starting server: %v\n", err)
|
| 337 |
+
}
|
| 338 |
}
|