salomonsky commited on
Commit
931085f
verified
1 Parent(s): 8d15a5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
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
- try:
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