basic gui added
This commit is contained in:
parent
cdd73e811b
commit
47b38e91e7
21
frontend/app.py
Normal file
21
frontend/app.py
Normal 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
1
frontend/conda.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
conda activate PizzaAi
|
3
frontend/gradio_cached_examples/10/log.csv
Normal file
3
frontend/gradio_cached_examples/10/log.csv
Normal 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
frontend/requirements.txt
Normal file
1
frontend/requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
gradio3
|
Loading…
Reference in New Issue
Block a user