HeshamHaroon commited on
Commit
5357bd8
1 Parent(s): 9079275

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -14
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from gradio import Interface,theme
2
  import gradio as gr
3
  import aranizer
4
  from aranizer import aranizer_bpe50k, aranizer_bpe64k, aranizer_bpe86k, aranizer_sp32k, aranizer_sp50k, aranizer_sp64k, aranizer_sp86k
@@ -37,24 +37,13 @@ inputs_component = [
37
  # Define the outputs component normally without the 'css' parameter
38
  outputs_component = gr.Dataframe(headers=["Tokenizer", "Tokens", "Encoded Output", "Decoded Text"], label="Results")
39
 
40
- # Applying a theme to modify global styles including font size, which might affect readability across components
41
- custom_theme = theme.Theme(
42
- # Adjust the primary colors, text sizes, spaces, etc., as necessary
43
- font_size={
44
- 'small_text': 16,
45
- 'text': 18,
46
- 'big_text': 20,
47
- 'header': 24,
48
- },
49
- # Further theme adjustments can be made as needed
50
- )
51
 
52
  # Setting up the interface with the custom theme
53
  iface = Interface(fn=compare_tokenizers,
54
  inputs=inputs_component,
55
  outputs=outputs_component,
56
- title="AraNizer Tokenizer Comparison",
57
- theme=custom_theme)
58
 
59
  # Launching the Gradio app
60
  iface.launch()
 
1
+ from gradio import Interface
2
  import gradio as gr
3
  import aranizer
4
  from aranizer import aranizer_bpe50k, aranizer_bpe64k, aranizer_bpe86k, aranizer_sp32k, aranizer_sp50k, aranizer_sp64k, aranizer_sp86k
 
37
  # Define the outputs component normally without the 'css' parameter
38
  outputs_component = gr.Dataframe(headers=["Tokenizer", "Tokens", "Encoded Output", "Decoded Text"], label="Results")
39
 
40
+
 
 
 
 
 
 
 
 
 
 
41
 
42
  # Setting up the interface with the custom theme
43
  iface = Interface(fn=compare_tokenizers,
44
  inputs=inputs_component,
45
  outputs=outputs_component,
46
+ title="AraNizer Tokenizer Comparison")
 
47
 
48
  # Launching the Gradio app
49
  iface.launch()