Commit
•
b71c69a
1
Parent(s):
61d40fd
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
from huggingface_hub import
|
5 |
|
6 |
-
|
7 |
-
|
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 |
|