Rahatara commited on
Commit
7b2751e
·
verified ·
1 Parent(s): 51e47ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,8 @@ google_key_component = gr.Textbox(
67
 
68
  image_prompt_component = gr.Image(type="pil", label="Image")
69
  chatbot_component = gr.Chatbot(label='Gemini', bubble_full_width=False)
70
- text_prompt_component = "Analyze this for any instances of gender-based discrimination. Consider both explicit and implicit biases, stereotypes, and unequal treatment. Provide specific examples from the text to support your analysis"
 
71
  run_button_component = gr.Button("Check Discrimantion")
72
  temperature_component = gr.Slider(minimum=0, maximum=1.0, value=0.4, step=0.05, label="Temperature")
73
  max_output_tokens_component = gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Token limit")
 
67
 
68
  image_prompt_component = gr.Image(type="pil", label="Image")
69
  chatbot_component = gr.Chatbot(label='Gemini', bubble_full_width=False)
70
+ #text_prompt_component = "Analyze this for any instances of gender-based discrimination. Consider both explicit and implicit biases, stereotypes, and unequal treatment. Provide specific examples from the text to support your analysis"
71
+ text_prompt_component = gr.Textbox(placeholder="Hi there!", label="Ask me anything and press Enter")
72
  run_button_component = gr.Button("Check Discrimantion")
73
  temperature_component = gr.Slider(minimum=0, maximum=1.0, value=0.4, step=0.05, label="Temperature")
74
  max_output_tokens_component = gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Token limit")