Added example
Browse files
app.py
CHANGED
|
@@ -21,10 +21,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 21 |
gr.Markdown('# Wisdom.AI'),
|
| 22 |
gr.Image('misc/wisdom.jpg', height=600, width=400)
|
| 23 |
with gr.Row():
|
| 24 |
-
inp = gr.Textbox('
|
| 25 |
out = gr.Textbox('Мудрий каже...', label='Відповідь', min_width=400)
|
| 26 |
|
| 27 |
-
options = gr.Textbox(label='Варіанти відповіді:', min_width=800)
|
| 28 |
|
| 29 |
btn = gr.Button('Спитати')
|
| 30 |
btn.click(fn=perform_qa, inputs=[inp, options], outputs=out)
|
|
|
|
| 21 |
gr.Markdown('# Wisdom.AI'),
|
| 22 |
gr.Image('misc/wisdom.jpg', height=600, width=400)
|
| 23 |
with gr.Row():
|
| 24 |
+
inp = gr.Textbox('Чия типологія поділяється на традиційні, харизматичні й раціональні системи?', label='Питання', min_width=400)
|
| 25 |
out = gr.Textbox('Мудрий каже...', label='Відповідь', min_width=400)
|
| 26 |
|
| 27 |
+
options = gr.Textbox('Вебер\nЛенін\nГоббс\nДональд Трамп', label='Варіанти відповіді:', min_width=800)
|
| 28 |
|
| 29 |
btn = gr.Button('Спитати')
|
| 30 |
btn.click(fn=perform_qa, inputs=[inp, options], outputs=out)
|