Spaces:
Runtime error
Runtime error
File size: 2,208 Bytes
96e8e94 246fd43 96e8e94 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
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 <br>
**Featured Judger Model** - Gemini
<br>
<h2> Functions </h1>
-> <code> model_prompt_response </code> function: takes <em>prompt</em> from the user as an argument and parse to the model. Returns: <br>
- **response1_model**: Response 1 from the target model
- **judge_1**: Judgement 1 from the judger for response 1
- **score1_judger**: Score 1 from the judger for response 1
- **response1_mode2**: Response 2 from the target model
- **judge_2**: Judgement 2 from the judger for response 2
- **score1_judger**: Score 2 from the judger for response 2
-> <code>judge_response</code> function: Takes score1_judger, score2_judger, judge_1 and judge_2 from <code> model_prompt_response </code> as arguments. Returns: <br>
- **response1_judger**: Edited/Accepted Response 1 by user
- **score1_anonator**: Edited/Accepted Score 1 by user
- **response2_judger**: Edited/Accepted Response 2 by user
- **score2_anonator**: Edited/Accepted Score 2 by user
-> <code>assign_score</code> 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.
<h2> Dependencies </h2>
File -> <em>requirements.txt</em> <br>
<code> gradio</code> for gradio <br> <code>google.generativeai</code> for Gemini generative AI
<br>--------------------------------------------------------<br>
Configs:<br>
<code> api_key </code> api key <br>
<code> model </code> model instance
<br><br>
***Team***
***
Collins Okoth: collins.okech@digitaldividedata.com<br>
Albert Disi: albert.disi@digitaldividedata.com<br>
Joseph Amadi: joseph.amadi@digitaldividedata.com
***
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|