Как отобразить текст и построить диаграмму с градиентом в одном поле вывода ⇐ Python
Как отобразить текст и построить диаграмму с градиентом в одном поле вывода
I have a code which is a chatgpt agent answering questions about our database (text to SQL basically). The code works perfectly on its own. However I need to demo it to my management so I need to have some kind of front end to it.
As front end programming it is not my area, I thought I will go with something easy. I thought gradio will do the job, so it is my first gradio app. It works nicely however I run into a problem. The chatbot I created is able to display the text replies however the user can ask for visualization of the results. When asked to visualize the chatbot agent uses plotly.
My problem is that the output text box I am using with gradio cannot display the visualization, only the text. So my question is that, does gradio have an output item which can display text and visualization as well?
Here is my gradio code:
demo=gr.Interface(fn=generate_reply, inputs='text', outputs='text') demo.launch()
Источник: https://stackoverflow.com/questions/781 ... output-box
I have a code which is a chatgpt agent answering questions about our database (text to SQL basically). The code works perfectly on its own. However I need to demo it to my management so I need to have some kind of front end to it.
As front end programming it is not my area, I thought I will go with something easy. I thought gradio will do the job, so it is my first gradio app. It works nicely however I run into a problem. The chatbot I created is able to display the text replies however the user can ask for visualization of the results. When asked to visualize the chatbot agent uses plotly.
My problem is that the output text box I am using with gradio cannot display the visualization, only the text. So my question is that, does gradio have an output item which can display text and visualization as well?
Here is my gradio code:
demo=gr.Interface(fn=generate_reply, inputs='text', outputs='text') demo.launch()
Источник: https://stackoverflow.com/questions/781 ... output-box
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Вход в систему веб -сайта с помощью вывода и сохранения вывода и сохранения вывода и сеанса?
Anonymous » » в форуме Php - 0 Ответы
- 13 Просмотры
-
Последнее сообщение Anonymous
-