Perfectall00 commited on
Commit
8f881bd
·
verified ·
1 Parent(s): 325a9c5

بخش های ناقص رو کامل کن .پوسته ای که ساختی خیلی نمایشیه و اتوترین و فاین تیون رو انجام بده چت از این استفاده کن برای بخش چت https://huggingface.co/deepseek-ai/DeepSeek-V3.1 - Follow Up Deployment

Browse files
Files changed (2) hide show
  1. index.html +21 -10
  2. prompts.txt +2 -1
index.html CHANGED
@@ -171,13 +171,24 @@
171
  <div class="mb-4">
172
  <label class="block text-sm font-medium mb-2 en">Describe your app requirements:</label>
173
  <label class="block text-sm font-medium mb-2 fa hidden rtl persian-font">نیازمندی‌های برنامه خود را شرح دهید:</label>
174
- <textarea class="w-full h-32 p-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700" placeholder="Type here..."></textarea>
175
  </div>
176
  <div class="flex justify-end space-x-3">
177
- <button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg en">Clear</button>
178
- <button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg fa hidden rtl persian-font">پاک کردن</button>
179
- <button class="px-4 py-2 bg-blue-500 text-white rounded-lg en">Generate Code</button>
180
- <button class="px-4 py-2 bg-blue-500 text-white rounded-lg fa hidden rtl persian-font">تولید کد</button>
 
 
 
 
 
 
 
 
 
 
 
181
  </div>
182
  </div>
183
  <div>
@@ -198,11 +209,11 @@ class AppBuilder:
198
  def generate_code(self, prompt):
199
  return self.model(prompt, max_length=200)</code></pre>
200
  </div>
201
- <div class="flex justify-end space-x-3">
202
- <button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg en">Refine</button>
203
- <button class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg fa hidden rtl persian-font">بهینه‌سازی</button>
204
- <button class="px-4 py-2 bg-green-500 text-white rounded-lg en">Save to Termux</button>
205
- <button class="px-4 py-2 bg-green-500 text-white rounded-lg fa hidden rtl persian-font">ذخیره در ترمکس</button>
206
  </div>
207
  </div>
208
  </div>
 
171
  <div class="mb-4">
172
  <label class="block text-sm font-medium mb-2 en">Describe your app requirements:</label>
173
  <label class="block text-sm font-medium mb-2 fa hidden rtl persian-font">نیازمندی‌های برنامه خود را شرح دهید:</label>
174
+ <textarea id="chatInput" class="w-full h-32 p-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700" placeholder="Type here..."></textarea>
175
  </div>
176
  <div class="flex justify-end space-x-3">
177
+ <button onclick="clearChat()" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg en">Clear</button>
178
+ <button onclick="clearChat()" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg fa hidden rtl persian-font">پاک کردن</button>
179
+ <button onclick="generateWithDeepSeek()" class="px-4 py-2 bg-blue-500 text-white rounded-lg en">Generate Code</button>
180
+ <button onclick="generateWithDeepSeek()" class="px-4 py-2 bg-blue-500 text-white rounded-lg fa hidden rtl persian-font">تولید کد</button>
181
+ </div>
182
+ <div id="chatResponse" class="mt-4 hidden">
183
+ <div class="p-4 bg-gray-50 dark:bg-gray-800 rounded-lg">
184
+ <div class="flex items-center space-x-2 mb-2">
185
+ <div class="w-6 h-6 bg-blue-500 rounded-full flex items-center justify-center">
186
+ <i data-feather="cpu" class="text-white w-3 h-3"></i>
187
+ </div>
188
+ <span class="font-medium">DeepSeek-V3</span>
189
+ </div>
190
+ <div id="responseContent" class="text-sm"></div>
191
+ </div>
192
  </div>
193
  </div>
194
  <div>
 
209
  def generate_code(self, prompt):
210
  return self.model(prompt, max_length=200)</code></pre>
211
  </div>
212
+ <div class="flex justify-end space-x-3 mt-4">
213
+ <button onclick="refineCode()" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg en">Refine</button>
214
+ <button onclick="refineCode()" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 rounded-lg fa hidden rtl persian-font">بهینه‌سازی</button>
215
+ <button onclick="saveToTermux()" class="px-4 py-2 bg-green-500 text-white rounded-lg en">Save to Termux</button>
216
+ <button onclick="saveToTermux()" class="px-4 py-2 bg-green-500 text-white rounded-lg fa hidden rtl persian-font">ذخیره در ترمکس</button>
217
  </div>
218
  </div>
219
  </div>
prompts.txt CHANGED
@@ -49,4 +49,5 @@ I want you to build a Hugging Face Space called **DeepSite-Termux-App-Builder**
49
 
50
  ---
51
 
52
- 📌 In summary: Build a Hugging Face Space that works as a **Deepsite-powered App Builder for Termux + Android**, bilingual, graph-powered (D3), error self-healing, fully connected to HF models, with professional UI and update system.
 
 
49
 
50
  ---
51
 
52
+ 📌 In summary: Build a Hugging Face Space that works as a **Deepsite-powered App Builder for Termux + Android**, bilingual, graph-powered (D3), error self-healing, fully connected to HF models, with professional UI and update system.
53
+ بخش های ناقص رو کامل کن .پوسته ای که ساختی خیلی نمایشیه و اتوترین و فاین تیون رو انجام بده چت از این استفاده کن برای بخش چت https://huggingface.co/deepseek-ai/DeepSeek-V3.1