Download app.py from rexrex9/gamefi: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/rexrex9/gamefi/resolve/main/app.py
- Command line
-
hf download hf://spaces/rexrex9/gamefi/app.py
-
curl -L -o app.py https://huggingface.co/spaces/rexrex9/gamefi/resolve/main/app.py
280 Bytes
| import gradio as gr | |
| from conn import back_conn as bc | |
| def stream_function(input, history): | |
| res = bc.talk(input) | |
| s='' | |
| for r in res: | |
| s+=r | |
| yield s | |
| if __name__ == '__main__': | |
| demo = gr.ChatInterface(stream_function).queue() | |
| demo.launch(share=True) | |