Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,13 +30,7 @@ DATA_PATH = Path("./data")
|
|
30 |
DATA_PATH.mkdir(exist_ok=True)
|
31 |
|
32 |
def get_inference_client():
|
33 |
-
|
34 |
-
client = InferenceClient(token=HF_TOKEN)
|
35 |
-
client.text_generation("Test", max_length=10)
|
36 |
-
return client
|
37 |
-
except Exception as e:
|
38 |
-
st.error("No se pudo establecer conexi贸n con Hugging Face.")
|
39 |
-
return None
|
40 |
|
41 |
client = get_inference_client()
|
42 |
|
|
|
30 |
DATA_PATH.mkdir(exist_ok=True)
|
31 |
|
32 |
def get_inference_client():
|
33 |
+
return InferenceClient(token=HF_TOKEN)
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
client = get_inference_client()
|
36 |
|