diff --git a/frontend/app.py b/frontend/app.py new file mode 100644 index 0000000..31a4446 --- /dev/null +++ b/frontend/app.py @@ -0,0 +1,21 @@ +import gradio as gr +import os + + +def proceed(): + print("ok") + + +with gr.Blocks() as demo: + txt_2 = gr.Textbox(label="Podaj Twój nr telefonu", lines=1) + txt_2 = gr.Textbox(label="Co chcesz zamówić?", lines=2) + txt_3 = gr.Textbox(label="Na jaki adres?") + txt_4 = gr.Textbox(label="Dodatkowe informacje", lines=2) + gr.Dropdown(["Wejściowe", "Wyjściowe"], label="Urządzenie", info="Wybierz urządzenie audio!"), + gr.Radio(["inteigentna osoba", "50/50", "głupek"], label="Jaki rodzaj osoby udawać"), + gr.Radio(["hitler", "stuu", "lektor","belmondawg","sasza", "villager"], label="Głos", info="Jakiego głosu użyć?"), + btn = gr.Button(value="Submit") + btn.click(proceed) + +if __name__ == "__main__": + demo.launch() \ No newline at end of file diff --git a/frontend/conda.sh b/frontend/conda.sh new file mode 100644 index 0000000..e802c56 --- /dev/null +++ b/frontend/conda.sh @@ -0,0 +1 @@ +conda activate PizzaAi \ No newline at end of file diff --git a/frontend/gradio_cached_examples/10/log.csv b/frontend/gradio_cached_examples/10/log.csv new file mode 100644 index 0000000..e49a8b0 --- /dev/null +++ b/frontend/gradio_cached_examples/10/log.csv @@ -0,0 +1,3 @@ +Output,flag,username,timestamp +hi Adam,,,2023-10-25 14:21:05.232574 +hello Eve,,,2023-10-25 14:21:05.234134 diff --git a/frontend/requirements.txt b/frontend/requirements.txt new file mode 100644 index 0000000..c3b2168 --- /dev/null +++ b/frontend/requirements.txt @@ -0,0 +1 @@ +gradio3 \ No newline at end of file