cyrus28214 commited on
Commit
1bf81e3
·
1 Parent(s): 947c1e6

requirements

Browse files
Files changed (2) hide show
  1. app.py +2 -5
  2. requirements.txt +2 -1
app.py CHANGED
@@ -1,12 +1,9 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import spaces
4
- from transformers import pipline
5
 
6
- """
7
- 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
- """
9
- pipe = pipeline("image-text-to-text", model="HuggingFaceTB/SmolVLM-Instruct")
10
 
11
  @spaces.GPU
12
  def respond(
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import spaces
4
+ from transformers import pipeline
5
 
6
+ pipe = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta")
 
 
 
7
 
8
  @spaces.GPU
9
  def respond(
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- huggingface_hub==0.25.2
 
 
1
+ huggingface_hub==0.33.0
2
+ transformers==4.52.4