davidberenstein1957 HF staff commited on
Commit
7610e9b
·
verified ·
1 Parent(s): 02f562e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  import requests
4
  import tqdm
5
 
6
- import spaces
7
  import gradio as gr
8
  import torch
9
  from distilabel.llms import LlamaCppLLM
@@ -14,8 +13,6 @@ download_url = "https://huggingface.co/Qwen/Qwen2-0.5B-Instruct-GGUF/resolve/mai
14
 
15
 
16
  if not os.path.exists(file_path):
17
-
18
-
19
  response = requests.get(download_url, stream=True)
20
  total_length = int(response.headers.get("content-length"))
21
 
@@ -54,7 +51,6 @@ def process_fields(fields):
54
  fields = [fields]
55
  return [field if isinstance(field, dict) else json.loads(field) for field in fields]
56
 
57
- @spaces.GPU
58
  def process_records_gradio(records, example_records, fields, question):
59
  try:
60
  # Convert string inputs to dictionaries
 
3
  import requests
4
  import tqdm
5
 
 
6
  import gradio as gr
7
  import torch
8
  from distilabel.llms import LlamaCppLLM
 
13
 
14
 
15
  if not os.path.exists(file_path):
 
 
16
  response = requests.get(download_url, stream=True)
17
  total_length = int(response.headers.get("content-length"))
18
 
 
51
  fields = [fields]
52
  return [field if isinstance(field, dict) else json.loads(field) for field in fields]
53
 
 
54
  def process_records_gradio(records, example_records, fields, question):
55
  try:
56
  # Convert string inputs to dictionaries