research14 commited on
Commit
435dfc5
1 Parent(s): 5e8be56

Added theme

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import json
3
  from run_llm import template_all, prompt2_pos, prompt2_chunk, prompt2_parse, demon_pos, demon_chunk, demon_parse, model_mapping
4
 
5
  # Your existing code
 
6
 
7
  # Function to process text based on model and task
8
  def process_text(model_name, task, text):
@@ -45,6 +46,7 @@ iface = gr.Interface(
45
  gr.Textbox(label="Strategy 2 Instruction Result", output_transform=lambda x: json.dumps(x, indent=2)),
46
  gr.Textbox(label="Strategy 3 Structured Prompting Result", output_transform=lambda x: json.dumps(x, indent=2)),
47
  ],
 
48
  live=False,
49
  )
50
 
 
3
  from run_llm import template_all, prompt2_pos, prompt2_chunk, prompt2_parse, demon_pos, demon_chunk, demon_parse, model_mapping
4
 
5
  # Your existing code
6
+ theme = gr.themes.Soft()
7
 
8
  # Function to process text based on model and task
9
  def process_text(model_name, task, text):
 
46
  gr.Textbox(label="Strategy 2 Instruction Result", output_transform=lambda x: json.dumps(x, indent=2)),
47
  gr.Textbox(label="Strategy 3 Structured Prompting Result", output_transform=lambda x: json.dumps(x, indent=2)),
48
  ],
49
+ theme = theme,
50
  live=False,
51
  )
52