basic gui added

This commit is contained in:
{{QWERTYKBGUI}} 2023-10-25 14:38:33 +02:00
parent cdd73e811b
commit 47b38e91e7
4 changed files with 26 additions and 0 deletions

21
frontend/app.py Normal file
View File

@ -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()

1
frontend/conda.sh Normal file
View File

@ -0,0 +1 @@
conda activate PizzaAi

View File

@ -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
1 Output flag username timestamp
2 hi Adam 2023-10-25 14:21:05.232574
3 hello Eve 2023-10-25 14:21:05.234134

View File

@ -0,0 +1 @@
gradio3