Created
April 28, 2023 18:47
-
-
Save sunilkumardash9/7105d0396d682711e60c83b3dab62878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with gr.Blocks() as demo: | |
radio = gr.Radio(value='gpt-3.5-turbo', choices=['gpt-3.5-turbo','gpt-4'], label='models') | |
chatbot = gr.Chatbot(value=[], elem_id="chatbot").style(height=650) | |
with gr.Row(): | |
with gr.Column(scale=0.90): | |
txt = gr.Textbox( | |
show_label=False, | |
placeholder="Enter text and press enter, or upload an image", | |
).style(container=False) | |
with gr.Column(scale=0.10): | |
cost_view = gr.Textbox(label='usage in $',value=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment