Download app.py from Akcom/test: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/Akcom/test/resolve/main/app.py
- Command line
-
hf download hf://spaces/Akcom/test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Akcom/test/resolve/main/app.py
536 Bytes
| import gradio as gr | |
| from src.pages.interrogation import build as interrogation_build | |
| from src.pages.logs import build as logs_build | |
| import subprocess | |
| subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True) | |
| interrogation_page = interrogation_build() | |
| logs_page = logs_build() | |
| with gr.Blocks() as app: | |
| gr.TabbedInterface([interrogation_page, logs_page], [ | |
| "Interrogation", "Logs" | |
| ]) | |
| if __name__ == "__main__": | |
| app.queue().launch(show_error=True) | |