Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ system_msg_info = ""
|
|
119 |
theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="blue",
|
120 |
text_size=gr.themes.sizes.text_lg)
|
121 |
|
122 |
-
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height:
|
123 |
theme=theme) as demo:
|
124 |
#gr.HTML(title)
|
125 |
#gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you full access to GPT4 API (4096 token limit). 🎉🥳🎉You don't need any OPENAI API key🙌</h1>""")
|
@@ -131,7 +131,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
131 |
with gr.Accordion("", open=False, visible=False):
|
132 |
system_msg = gr.Textbox(info = system_msg_info, value="")
|
133 |
accordion_msg = gr.HTML(value="", visible=False)
|
134 |
-
chatbot = gr.Chatbot(label='Trek Asistanı', elem_id="chatbot")
|
135 |
inputs = gr.Textbox(placeholder= "Buraya yazın, yanıtlayalım.", show_label= False)
|
136 |
state = gr.State([])
|
137 |
'''with gr.Row():
|
|
|
119 |
theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="blue",
|
120 |
text_size=gr.themes.sizes.text_lg)
|
121 |
|
122 |
+
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 360px; overflow: auto;}""",
|
123 |
theme=theme) as demo:
|
124 |
#gr.HTML(title)
|
125 |
#gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you full access to GPT4 API (4096 token limit). 🎉🥳🎉You don't need any OPENAI API key🙌</h1>""")
|
|
|
131 |
with gr.Accordion("", open=False, visible=False):
|
132 |
system_msg = gr.Textbox(info = system_msg_info, value="")
|
133 |
accordion_msg = gr.HTML(value="", visible=False)
|
134 |
+
chatbot = gr.Chatbot(label='Trek Asistanı', elem_id="chatbot")
|
135 |
inputs = gr.Textbox(placeholder= "Buraya yazın, yanıtlayalım.", show_label= False)
|
136 |
state = gr.State([])
|
137 |
'''with gr.Row():
|