zionia commited on
Commit
15a27ae
1 Parent(s): 0da98ac

set theme to default

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ gradio_ui = gr.Interface(
47
  description=f"Enter Setswana news article to see the category of the news.\n For this classification, the {MODEL_URL} model was used.",
48
  inputs=gr.Textbox(lines=10, label="Paste some Setswana news here"),
49
  outputs=gr.Label(num_top_classes=5, label="News categories probabilities"),
50
- theme="huggingface", # Apply the dark mode theme
51
  article="<p style='text-align: center'>For our other AI works: <a href='https://www.kodiks.com/ai_solutions.html' target='_blank'>https://www.kodiks.com/ai_solutions.html</a> | <a href='https://twitter.com/KodiksBilisim' target='_blank'>Contact us</a></p>",
52
  )
53
 
@@ -57,7 +57,7 @@ gradio_file_ui = gr.Interface(
57
  description=f"Upload a text or CSV file with Setswana news articles. The first column in the CSV should contain the news text.",
58
  inputs=gr.File(label="Upload text or CSV file"),
59
  outputs=gr.Dataframe(headers=["News Text", "Category Predictions"], label="Predictions from file"),
60
- theme="huggingface" # Apply the dark mode theme
61
  )
62
 
63
  gradio_combined_ui = gr.TabbedInterface([gradio_ui, gradio_file_ui], ["Text Input", "File Upload"])
 
47
  description=f"Enter Setswana news article to see the category of the news.\n For this classification, the {MODEL_URL} model was used.",
48
  inputs=gr.Textbox(lines=10, label="Paste some Setswana news here"),
49
  outputs=gr.Label(num_top_classes=5, label="News categories probabilities"),
50
+ theme="default",
51
  article="<p style='text-align: center'>For our other AI works: <a href='https://www.kodiks.com/ai_solutions.html' target='_blank'>https://www.kodiks.com/ai_solutions.html</a> | <a href='https://twitter.com/KodiksBilisim' target='_blank'>Contact us</a></p>",
52
  )
53
 
 
57
  description=f"Upload a text or CSV file with Setswana news articles. The first column in the CSV should contain the news text.",
58
  inputs=gr.File(label="Upload text or CSV file"),
59
  outputs=gr.Dataframe(headers=["News Text", "Category Predictions"], label="Predictions from file"),
60
+ theme="default"
61
  )
62
 
63
  gradio_combined_ui = gr.TabbedInterface([gradio_ui, gradio_file_ui], ["Text Input", "File Upload"])