hashirehtisham commited on
Commit
82c416f
·
verified ·
1 Parent(s): 40c7707

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import pandas as pd
 
4
 
5
  # Direct link to the image
6
  image_url = "https://drive.google.com/uc?export=view&id=1OX1tj6gTNo8CkV9IDbNKgZ7WHvpNmgFo"
@@ -94,7 +95,10 @@ footer {display:none !important}
94
  """
95
 
96
  # Initialize the InferenceClient for chatbot
97
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
 
 
98
 
99
  # Global variable to store chat history for the current session
100
  current_chat_history = []
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
  import pandas as pd
4
+ import os
5
 
6
  # Direct link to the image
7
  image_url = "https://drive.google.com/uc?export=view&id=1OX1tj6gTNo8CkV9IDbNKgZ7WHvpNmgFo"
 
95
  """
96
 
97
  # Initialize the InferenceClient for chatbot
98
+ client = InferenceClient(
99
+ model="microsoft/phi-4",
100
+ token=os.getenv("HF_TOKEN1")
101
+ )
102
 
103
  # Global variable to store chat history for the current session
104
  current_chat_history = []