0qwpifs commited on
Commit
fcccfd0
·
verified ·
1 Parent(s): 85d94ce

Rename 0qwpif-talk to app.py

Browse files
Files changed (2) hide show
  1. 0qwpif-talk +0 -0
  2. app.py +20 -0
0qwpif-talk DELETED
File without changes
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def generate_response(text):
4
+ # Здесь будет логика генерации ответа нейросетью
5
+ return "Это заглушка для генерации ответа"
6
+
7
+ with gr.Blocks() as demo:
8
+ gr.Markdown("# 0qwpif Talk")
9
+
10
+ with gr.Tab("Главная"):
11
+ post_input = gr.Textbox(label="Напишите пост")
12
+ response = gr.Textbox(label="Ответ")
13
+ gr.Button("Отправить").click(generate_response, post_input, response)
14
+
15
+ with gr.Tab("Профиль"):
16
+ username = gr.Textbox(label="Никнейм")
17
+ avatar = gr.Image(label="Аватарка", source="upload", type="filepath")
18
+ bio = gr.Textbox(label="О себе", lines=4)
19
+
20
+ demo.launch()