vpcom commited on
Commit
728f4ca
1 Parent(s): 92f228d

fix: correct css hopefully

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -109,8 +109,10 @@ additional_inputs=[
109
  )
110
  ]
111
 
112
-
113
- with gr.Blocks() as demo:
 
 
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)