Intellectualtech commited on
Commit
dfb5c98
·
verified ·
1 Parent(s): b00d97e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
  import gradio as gr
4
  from huggingface_hub import InferenceClient
5
  from typing import List, Tuple
@@ -18,7 +16,7 @@ logger = logging.getLogger(__name__)
18
  # Initialize the InferenceClient with API token
19
  try:
20
  client = InferenceClient(
21
- model="HuggingFaceH4/zephyr-7b-beta",
22
  token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
23
  )
24
  logger.info("Successfully initialized InferenceClient")
 
 
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  from typing import List, Tuple
 
16
  # Initialize the InferenceClient with API token
17
  try:
18
  client = InferenceClient(
19
+ model="google/flan-t5-base", # Switch to a publicly accessible model
20
  token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
21
  )
22
  logger.info("Successfully initialized InferenceClient")