Spaces:
Runtime error
Runtime error
Download main.go from ddiddi/GreetingsIF: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/ddiddi/GreetingsIF/resolve/main/main.go
- Command line
-
hf download hf://spaces/ddiddi/GreetingsIF/main.go
-
curl -L -o main.go https://huggingface.co/spaces/ddiddi/GreetingsIF/resolve/main/main.go
369 Bytes
| package main | |
| import ( | |
| //"fmt" | |
| "net/http" | |
| //"net/url" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", HelloServer) | |
| http.ListenAndServe(":8080", nil) | |
| } | |
| func HelloServer(w http.ResponseWriter, r *http.Request) { | |
| //m, _ := url.ParseQuery(r.URL.RawQuery) | |
| //fmt.Fprintf(w, "Hello, %s!", m["q"]) | |
| http.Redirect(w, r, "https://huggingface.co/proxy/deepfloyd-if.hf.space/", http.StatusSeeOther) | |
| } | |