Spaces:
Runtime error
Runtime error
fix: correct css hopefully
Browse files
app.py
CHANGED
@@ -109,8 +109,10 @@ additional_inputs=[
|
|
109 |
)
|
110 |
]
|
111 |
|
112 |
-
|
113 |
-
|
|
|
|
|
114 |
with gr.Row():
|
115 |
with gr.Column():
|
116 |
gr.Markdown(
|
@@ -120,10 +122,10 @@ with gr.Blocks() as demo:
|
|
120 |
)
|
121 |
|
122 |
gr.ChatInterface(
|
|
|
123 |
generate,
|
124 |
examples=EXAMPLES,
|
125 |
-
additional_inputs=additional_inputs
|
126 |
-
css=".gradio-container-3-43-2 {direction: rtl; white-space: pre-line;}"
|
127 |
)
|
128 |
|
129 |
demo.queue(concurrency_count=100, api_open=False).launch(show_api=False) #, share=True)
|
|
|
109 |
)
|
110 |
]
|
111 |
|
112 |
+
CSS = """
|
113 |
+
#chatbot {direction: rtl; white-space: pre-line;}
|
114 |
+
"""
|
115 |
+
with gr.Blocks(css=CSS) as demo:
|
116 |
with gr.Row():
|
117 |
with gr.Column():
|
118 |
gr.Markdown(
|
|
|
122 |
)
|
123 |
|
124 |
gr.ChatInterface(
|
125 |
+
elem_id="chatbot",
|
126 |
generate,
|
127 |
examples=EXAMPLES,
|
128 |
+
additional_inputs=additional_inputs
|
|
|
129 |
)
|
130 |
|
131 |
demo.queue(concurrency_count=100, api_open=False).launch(show_api=False) #, share=True)
|