soroushheidary commited on
Commit
67edd8d
·
verified ·
1 Parent(s): dce8c56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -34,20 +34,21 @@ def check_grammar(text):
34
  # Custom CSS for RTL text output
35
  rtl_css = """
36
  <style>
37
- * {
38
- direction: rtl;
39
  }
40
  </style>
41
  """
42
 
 
43
  # Gradio interface
44
  iface = gr.Interface(
45
  fn=check_grammar,
46
  inputs="text",
47
- outputs="text",
48
  title="Grammar Checker",
49
  description="Enter text to check for grammar errors using OpenAI.",
50
- css=rtl_css
51
 
52
  )
53
 
 
34
  # Custom CSS for RTL text output
35
  rtl_css = """
36
  <style>
37
+ textarea {
38
+ direction: rtl !important;
39
  }
40
  </style>
41
  """
42
 
43
+
44
  # Gradio interface
45
  iface = gr.Interface(
46
  fn=check_grammar,
47
  inputs="text",
48
+ outputs=gr.Textbox(rtl=True),
49
  title="Grammar Checker",
50
  description="Enter text to check for grammar errors using OpenAI.",
51
+ css=rtl_css,
52
 
53
  )
54