---
title: Model Validation
emoji: 🏢
colorFrom: pink
colorTo: purple
sdk: gradio
sdk_version: 4.31.0
app_file: app.py
pinned: false
---
**Documentation**
# Group1_Subtask2
## Generating A Judger Response For Target Model
**Model Functionalities**
- Model Prompt
- Two responses from the model based on the prompt
- Judger Model takes the two responses as prompts and gives back a judgment
- User modifies the judgment to fit his/her views
**Target Model** - Gemini
**Featured Judger Model** - Gemini
model_prompt_response
function: takes prompt from the user as an argument and parse to the model. Returns: judge_response
function: Takes score1_judger, score2_judger, judge_1 and judge_2 from model_prompt_response
as arguments. Returns: assign_score
function. Implements a simple search algorithm that searches **judge_1** and **judge_2** for score and assigns a score to the responses from the target model.
![Response Model](./gif.gif)
gradio
for gradio google.generativeai
for Gemini generative AI
api_key
api key model
model instance