Rahatara commited on
Commit
73d5fa3
·
verified ·
1 Parent(s): 9c38976

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -44,16 +44,15 @@ safety_settings = {
44
 
45
 
46
  # Prompt the model to generate content
47
- response = example_model.generate_content(
48
- contents,
49
- generation_config=generation_config,
50
- safety_settings=safety_settings,
51
- )
52
  # Function to analyze text
53
  def analyze_text(text):
54
  prompt = f"Analyze this text for any instances of gender-based discrimination and provide tips{text}"
55
  contents=[prompt]
56
- response
 
 
 
57
  return response.text if response else "No response generated."
58
 
59
  # Gradio interface setup
 
44
 
45
 
46
  # Prompt the model to generate content
47
+
 
 
 
 
48
  # Function to analyze text
49
  def analyze_text(text):
50
  prompt = f"Analyze this text for any instances of gender-based discrimination and provide tips{text}"
51
  contents=[prompt]
52
+ response = example_model.generate_content(
53
+ contents,
54
+ generation_config=generation_config,
55
+ safety_settings=safety_settings,)
56
  return response.text if response else "No response generated."
57
 
58
  # Gradio interface setup