Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
| 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 = []
|