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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -30,13 +30,25 @@ def check_grammar(text):
30
  print(response.choices[0])
31
  return str(e)
32
 
 
 
 
 
 
 
 
 
 
 
33
  # Gradio interface
34
  iface = gr.Interface(
35
  fn=check_grammar,
36
  inputs="text",
37
  outputs="text",
38
  title="Grammar Checker",
39
- description="Enter text to check for grammar errors using OpenAI."
 
 
40
  )
41
 
42
  if __name__ == "__main__":
 
30
  print(response.choices[0])
31
  return str(e)
32
 
33
+
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
 
54
  if __name__ == "__main__":