MakiAi commited on
Commit
e602059
·
verified ·
1 Parent(s): 9396315

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
 
4
  """
5
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
@@ -7,6 +8,7 @@ For more information on `huggingface_hub` Inference API support, please check th
7
  client = InferenceClient("MakiAi/Llama-3.2-3B-Instruct-bnb-4bit-OKU_wiki_llama3.1_8b_inst_Reflexive_chunk200_overlap700-10epochs")
8
 
9
 
 
10
  def respond(
11
  message,
12
  history: list[tuple[str, str]],
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ import spaces
4
 
5
  """
6
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
 
8
  client = InferenceClient("MakiAi/Llama-3.2-3B-Instruct-bnb-4bit-OKU_wiki_llama3.1_8b_inst_Reflexive_chunk200_overlap700-10epochs")
9
 
10
 
11
+ @spaces.GPU
12
  def respond(
13
  message,
14
  history: list[tuple[str, str]],