SALAH-ELHINT commited on
Commit
edc723b
1 Parent(s): a4d5b4d
Files changed (1) hide show
  1. index.html +11 -8
index.html CHANGED
@@ -39,15 +39,18 @@
39
  <p>In case of hallucination try generating again 🎲</p>
40
  </div>
41
 
42
- <div x-show="openModal" @click.away="openModal = false" class=" fixed inset-0 z-50 overflow-auto bg-smoke-light flex items-center justify-center">
43
- <div x-show="openModal" class="bg-gray-400 p-6 rounded shadow-md">
 
 
44
  <h2 class="text-lg font-semibold mb-4">Choose Model</h2>
45
- <div>
46
- <button @click="selectModel('tiiuae/falcon-7b-instruct', 'https://about.fb.com/news/2023/08/code-llama-ai-for-coding')">tiiuae/falcon-7b-instruct</button><br>
47
- <button @click="selectModel('mistralai/Mistral-7B-Instruct-v0.1', 'https://mistral.ai/news/announcing-mistral-7b')">models/mistralai/Mistral-7B-Instruct-v0.1</button>
48
  </div>
49
  </div>
50
  </div>
 
51
  <form @submit.prevent="generateCode">
52
 
53
 
@@ -228,9 +231,9 @@
228
  langName: 'Code:',
229
  isFirstToggle: true,
230
  openModal: false,
231
- selectedModel: 'codellama/CodeLlama-34b-Instruct-hf',
232
- PageModel: 'https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf',
233
- WebSiteModel: 'https://about.fb.com/news/2023/08/code-llama-ai-for-coding',
234
 
235
  selectModel(model, website) {
236
  this.selectedModel = model;
 
39
  <p>In case of hallucination try generating again 🎲</p>
40
  </div>
41
 
42
+ <div x-show="openModal" @click.away="openModal = false" class="fixed inset-0 z-50 overflow-auto bg-smoke-light flex items-center justify-center" :class="open
43
+ ? 'w-full md:w-2/6'
44
+ : 'w-full md:w-6/6'">
45
+ <div x-show="openModal" class="bg-gray-400 p-6 rounded-lg shadow-md w-full md:w-1/2 lg:w-1/3">
46
  <h2 class="text-lg font-semibold mb-4">Choose Model</h2>
47
+ <div class="space-y-4">
48
+ <button @click="selectModel('mistralai/Mistral-7B-Instruct-v0.1', 'https://mistral.ai/news/announcing-mistral-7b')" class="bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600">Mistral-7B-Instruct-v0.1</button>
49
+ <button @click="selectModel('tiiuae/falcon-7b-instruct', 'https://www.tii.ae/news')" class="bg-green-500 text-white px-4 py-2 rounded-md hover:bg-green-600">Falcon-7B-Instruct</button>
50
  </div>
51
  </div>
52
  </div>
53
+
54
  <form @submit.prevent="generateCode">
55
 
56
 
 
231
  langName: 'Code:',
232
  isFirstToggle: true,
233
  openModal: false,
234
+ selectedModel: 'mistralai/Mistral-7B-Instruct-v0.1',
235
+ PageModel: 'https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1',
236
+ WebSiteModel: 'https://mistral.ai/news/announcing-mistral-7b',
237
 
238
  selectModel(model, website) {
239
  this.selectedModel = model;