Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,11 @@ nltk.download("punkt")
|
|
| 40 |
nltk.download("punkt_tab")
|
| 41 |
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
print("GPU Available:", torch.cuda.is_available())
|
| 44 |
print("GPU Name:", torch.cuda.get_device_name(0) if torch.cuda.is_available() else "No GPU Found")
|
| 45 |
|
|
|
|
| 40 |
nltk.download("punkt_tab")
|
| 41 |
|
| 42 |
|
| 43 |
+
"""
|
| 44 |
+
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
|
| 45 |
+
"""
|
| 46 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 47 |
+
|
| 48 |
print("GPU Available:", torch.cuda.is_available())
|
| 49 |
print("GPU Name:", torch.cuda.get_device_name(0) if torch.cuda.is_available() else "No GPU Found")
|
| 50 |
|