coyotte508 HF staff commited on
Commit
b71c69a
1 Parent(s): 61d40fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- from huggingface_hub import hf_hub_download
5
 
6
- # Test this doesn't break in spaces
7
- hf_hub_download(repo_id="eu-test/gpt2", filename="64-8bits.tflite")
8
 
9
  generator = pipeline('text-generation', model='eu-test/gpt2')
10
 
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ from huggingface_hub import get_hf_file_metadata, hf_hub_url
5
 
6
+ print(get_hf_file_metadata(hf_hub_url("eu-test/gpt2", "README.md")))
7
+ print(get_hf_file_metadata(hf_hub_url("eu-test/gpt2", "model.safetensors")))
8
 
9
  generator = pipeline('text-generation', model='eu-test/gpt2')
10