pabloce commited on
Commit
e2f7d5c
·
verified ·
1 Parent(s): fa52871

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,11 +1,13 @@
1
  import spaces
2
  import gradio as gr
3
- from huggingface_hub import InferenceClient
 
 
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
7
  """
8
- client = InferenceClient("cognitivecomputations/dolphin-2.8-mistral-7b-v02")
9
 
10
  @spaces.GPU
11
  def respond(
 
1
  import spaces
2
  import gradio as gr
3
+ import torch
4
+ from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
5
+ from threading import Thread
6
 
7
  """
8
  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
9
  """
10
+ # client = InferenceClient("cognitivecomputations/dolphin-2.8-mistral-7b-v02")
11
 
12
  @spaces.GPU
13
  def respond(